You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vue Router saves information on the history.state. If you have any code manually calling history.pushState(), you should likely avoid it or refactor it with a regular router.push() and a history.replaceState()
Version
4.0.8
Reproduction link
https://jsfiddle.net/4um9abzg/4/
Steps to reproduce
pushState
back
console
the callback of
router.beforeEach
is triggered.but it won't be triggered in vue@2.x and vue-router@3.x
vue-route@3.x link: https://codesandbox.io/s/magical-leaf-mxd4l
What is expected?
the callback of
router.beforeEach
will not be triggered.What is actually happening?
the callback of
router.beforeEach
is triggered.The text was updated successfully, but these errors were encountered: