Skip to content

Route alias does not set active link class #2340

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

Closed
nolimitdev opened this issue Aug 6, 2018 · 1 comment
Closed

Route alias does not set active link class #2340

nolimitdev opened this issue Aug 6, 2018 · 1 comment

Comments

@nolimitdev
Copy link

nolimitdev commented Aug 6, 2018

Version

3.0.1

Reproduction link

https://jsfiddle.net/8xrk1n9f/1279/

Steps to reproduce

Clicking at alias does not set active link class for router link referencing to About component. I think users expect this active class to work because router-link knows route definition and de facto it's alias(es). By vue-router doc aliases should behave the same way as origin route. So it should be fixed/implemented or add explicit note to https://router.vuejs.org/guide/essentials/redirect-and-alias.html#alias and/or https://router.vuejs.org/api/#active-class that active class does not work with aliases.

What is expected?

Active class should be set

What is actually happening?

Active class is not set

@posva
Copy link
Member

posva commented Aug 6, 2018

Duplicate of #419

@posva posva marked this as a duplicate of #419 Aug 6, 2018
@posva posva closed this as completed Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants