We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
exact
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
3.0.1
https://codesandbox.io/s/1340kjpvvl?autoresize=1&initialpath=%2Fa%2F1&module=%2Fsrc%2Fcomponents%2Fview.vue
(From demo page)
Anchor tags
#anchor
refresh
The link should still has its active class (but only when mode: 'history')
mode: 'history'
vue-router also compared its hash, so it's no longer exact and lost its class
vue-router
hash
I think if we're in history mode, it is no need to compare route.hash
history mode
route.hash
https://github.com/vuejs/vue-router/blob/dev/src/util/route.js#L73-L94
The text was updated successfully, but these errors were encountered:
Let's move the discussion to #2040 (which was originally for queries) but it is the same kind of problem: exact is not flexible enough
Sorry, something went wrong.
I see, thanks :)
No branches or pull requests
Version
3.0.1
Reproduction link
https://codesandbox.io/s/1340kjpvvl?autoresize=1&initialpath=%2Fa%2F1&module=%2Fsrc%2Fcomponents%2Fview.vue
Steps to reproduce
(From demo page)
Anchor tags
link, it will append#anchor
to the href of current pagerefresh
link, just like sharing a link with a specific paragraphWhat is expected?
The link should still has its active class (but only when
mode: 'history'
)What is actually happening?
vue-router
also compared itshash
, so it's no longerexact
and lost its classI think if we're in
history mode
, it is no need to compareroute.hash
https://github.com/vuejs/vue-router/blob/dev/src/util/route.js#L73-L94
The text was updated successfully, but these errors were encountered: