-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
The new router in rc.1 breaks when a url parameter contains a forward slash #8603
Comments
Thank you for submitting the issue. All issues require a plunker which demonstrates the problem and how to reproduce it. Please re-open the issue or create a new issue once you have a reproducible use case. We are sorry that we are so aggressive on closing the issues. We are overwhelmed with the number of issues we get, and so we only have time to look at the ones which are easy for us to reproduce. |
Fixed #9581 |
@vsavkin not work. Error: Cannot match any routes: |
I'm having this issue with Angular Router 7.2.14. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Steps to reproduce and a minimal demo of the problem
Putting a slash in the url parameter causes the router and /or the page to break.
e.g. The following urls would not work when loading an angular2 app that uses @angular/router
localhost/home?some_param=someval/withaslash
or with matrix parameters
localhost/home;some_param=someval/withaslash
If the forward slash is escaped as %2f then it works fine. I remember this was an issue with the old router (now @angular/router-deprecated) but it was eventually fixed.
I have a workaround in place to escape the slashes, but it is hacky. It'd be nice if the new router could handle forward slashes in url or matrix parameters
Thanks!
The text was updated successfully, but these errors were encountered: