Skip to content

Query params containing commas result in an extra navigation #16067

@bourey

Description

@bourey

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:

  1. Download https://github.com/bourey/ngupgrade-example/tree/ng2
  2. npm start
  3. npm install
  4. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions