S
S
SkLight2019-03-14 14:30:09
Vue.js
SkLight, 2019-03-14 14:30:09

How to disable page reload when navigating through browser back/forward buttons when using vue-router?

Symfony project.
One page uses vue.
Component rendering is toggled using vue-router (mode: 'history').
When navigating through the local menu (router-link), the switch happens normally (no page reload). When navigating through the browser (back/forward), the required component is displayed and then the entire page is reloaded immediately.
Where to dig?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question