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
When matching against the path /a, vue-router will return the b route instead of c. vue-router version 1 correctly returned route c in this case.
Also, vue-router seems to associate route b with path /a/, why the trailing slash? Shouldn't path /a always be resolved to route c (regardless of any trailing slash)?
I managed to get it working the way I want by changing in the addRouteRecord function
Vue version: 2.0.6
Vue-router version: 2.0.2
Reproduction link: http://jsfiddle.net/4wogLvcd/
Given the following routes:
When matching against the path
/a
, vue-router will return theb
route instead ofc
. vue-router version 1 correctly returned routec
in this case.Also, vue-router seems to associate route
b
with path/a/
, why the trailing slash? Shouldn't path/a
always be resolved to routec
(regardless of any trailing slash)?I managed to get it working the way I want by changing in the
addRouteRecord
functionto
that way only the deepest route will be associated with the path, but I don't know if this breaks anything else. What do you think?
The text was updated successfully, but these errors were encountered: