Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unclear structure of params object #2503
Steps to reproduce
What is expected?
The matched part is returned.
What is actually happening?
Value is undefined. The value is at
https://github.com/vuejs/vue-router/pull/1995/files (@posva) has done a change that changes from having
I would argue that this is an API breaking change and should be done in a major version release. I would, but
As the damage is done already, maybe you can use this bug to improve on documentation and state in documentation for
As the damage is done already, maybe you can use this bug to improve on documentation and state in documentation for $route.params where the matched part is exposed for routes that are using *.
Exactly! That was seen as a bugfix because having a param named as 0 was breaking applications in some cases and it wasn't documented. So this won't go into a major version. The docs haven't been updated yet. I plan to do it this weekend once I have time but, as always, I'm open to contributions