Hello everyone ! I am currently facing a strange issue using Vue js 2.0 and router (2.1.1)
Given the route "/user/:id", whenever I have /user/1 or /user/1* (it will append router-link-active class)
Ex: /user/11, /user/111, /user/1111 etc. all router-links that have this path will be set as active, causing multiple links to have the active class.
I guess it is a bug with Vue router itself, any ideas ?
Best,
Hi!
Please make sure to follow the Issue Reporting Guidelines before opening an issue.
Thanks!
Maybe exact prop can help you out.
Most helpful comment
Maybe
exactprop can help you out.See: http://router.vuejs.org/en/api/router-link.html