Is my route active by design or am I using unintended side-effect? #1849
-
When upgrading to vue-router v4 I noticed the change in active / exact active behaviour. Previously, I had these routes:
And this link in the menu:
In vue-router v3 the link was active when
There are similar examples in the RFC but none that would map 1:1 to my case. My concern is about the fact that I link to the child route with an empty path ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is by design as pointed out in the RFC examples. You can omit the |
Beta Was this translation helpful? Give feedback.
This is by design as pointed out in the RFC examples. You can omit the
component
option completely on thepath: 'courses'
BTW. It should probably also be/courses
instead if it's a root path