-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Param 0 har been renamed pathMatch but must be provided in router object #2742
Comments
Works fine when I change this: {
myParam: route.params.param,
} to this: {
myParam: route.params.myParam,
} in the route definition. |
I took a look, the path should start with |
@LinusBorg So it should be, but the "expected 0" error occurs when navigating with the second button. Anyway, in case the demo is a bit unclear. The trouble for me in my real case, is that I want to change one parameter out of three (incl 0/pathMatch) and that's really convenient to do with Thanks for taking your time guys and have a nice weekend! :) |
@mikaelkarlsson-se Take a look at #3062, I think it's the same issue. Unfortunately, based on pasva'a answer, it seems |
@adi-zz Thanks for the info. If that's the case it should be documented and this issue can be closed. |
Closing in favour of #3072 |
Version
3.0.5
Reproduction link
https://codesandbox.io/s/k0jxq926jr?fontsize=14
Steps to reproduce
What is expected?
Providing the property pathMatch in $router.push object should be equal to providing '0' or really work instead of 0, as 0 has been renamed to pathMatch (issue #1994).
What is actually happening?
The routing breaks because of a missing property for the wildcard (0) in the route regexp.
I'm using v3.0.5 but it was not possible to chose in the list.
The text was updated successfully, but these errors were encountered: