Skip to content

Router navigateByUrl does not consistently apply queryParams #18798

@jinder

Description

@jinder

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

In certain scenarios, navigateByUrl does not apply query params.

Expected behavior

It should always apply query params.

Minimal reproduction of the problem with instructions

Plunkr provided here: http://plnkr.co/edit/846in1yy0rjneOR5YbXD

Click the two buttons at the top to see the difference in behaviour.

What is the motivation / use case for changing the behavior?

Environment


Angular version: 4.3.5

Browser:
- [X] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions