Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation guards being triggered on unused router on history back/forward. #3046

Closed
trafium opened this issue Nov 28, 2019 · 1 comment
Closed

Comments

@trafium
Copy link

@trafium trafium commented Nov 28, 2019

Version

2.6.0

Reproduction link

https://jsfiddle.net/7n5jkgv9/2/

Steps to reproduce

Click both Foo and Bar links, then try to go back and forward in browser history.

What is expected?

Unused by any Vue app VueRouter's navigation guard should not be triggered.

What is actually happening?

Unused by any Vue app VueRouter's navigation guard is being triggered.

@posva

This comment has been minimized.

Copy link
Member

@posva posva commented Nov 28, 2019

This is normal, both routers are connected to the same address bar. You are not supposed to have more than one router connected to the address bar. You can use an abstract one if you need it

@posva posva closed this Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.