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
Updated the documentation: the base tag needs to have an appropriate value because it's taken into account by history.pushState. In your case, it should have /router-bug/
the problem I have is, that I am just "injecting" Vue app into existing page handled by our corporate CMS. So I am not touching header / footer, only main part in between them. Hence, updating value of base tag is not an option for me :/
when I use Vue 2 with (older version of) router, it works as I expected, though...
Version
4.0.2
Reproduction link
https://github.com/vitchioto/vue3-test
Steps to reproduce
What is expected?
Path in the address bar stays as it is (only with added #/ in the end of the address).
You can see it here: https://test.vladovic.sk/router/
What is actually happening?
Path in address bar and urls of router links are changed to root (value of base tag)
You can see it here: https://test.vladovic.sk/router-bug/
The only difference between those 2 pages is this line:
https://github.com/vitchioto/vue3-test/blob/master/public/index.html#L9
Although, according to documentation, base tag in head should be ignored if parameter is passed to createWebHashHistory (https://next.router.vuejs.org/api/#createwebhashhistory).
The text was updated successfully, but these errors were encountered: