-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Closed
Description
I'm submitting a ... (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
When visiting an ng2 URL with a query parameter value containing a comma, ng2 redirects to the same path with all query parameters removed.
Expected behavior
Parameters should not disappear, and the router should properly report the value for the query param.
Minimal reproduction of the problem with instructions
Steps to reproduce:
- Download https://github.com/bourey/ngupgrade-example/tree/ng2
- npm start
- npm install
- Visit http://localhost:3000/teams?foo=bar,baz
What is the motivation / use case for changing the behavior?
Our product currently has some parameter values containing commas, and we need to support them.
Please tell us about your environment:
- Angular version: 4.0.2
- Browser: Chrome
- Language: TS