-
-
Notifications
You must be signed in to change notification settings - Fork 5k
router-link-active class is removed if the route is not exact #2707
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
Comments
this is working as expected, the |
@posva the repro was wrong, I fixed it, the issue is a bit more complex. |
@posva may you give it an other try ? |
Do the redirect in a child instead, that makes more sense 🙂 children: [
{
path: "home",
name: "home",
component: HomePage,
children: [
{ path: '', redirect: {
name: "page-1"
}},
{
path: "page-1",
name: "page-1",
component: Page1
},
{
path: "page-2",
name: "page-2",
component: Page2
}
]
}
] |
It means |
Glad to see that an issue is considered an issue after 3 reports #2724 |
Version
3.0.3
Reproduction link
https://codesandbox.io/embed/zrjv12l0rp
Steps to reproduce
What is expected?
Home should have
router-link-active
classWhat is actually happening?
router-link-active
is removed from Home on route changeThe text was updated successfully, but these errors were encountered: