-
Notifications
You must be signed in to change notification settings - Fork 25.7k
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
fix(router): ignore null or undefined query parameters #12333
Conversation
d31a761
to
bf6583a
Compare
@@ -520,11 +523,21 @@ export class Router { | |||
if (url instanceof UrlTree) { | |||
return containsTree(this.currentUrlTree, url, exact); | |||
} else { | |||
const urlTree = this.urlSerializer.parse(url); | |||
const urlTree = this.urlSerializer.parse(<string>url); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
@@ -500,6 +500,9 @@ export class Router { | |||
*/ | |||
navigate(commands: any[], extras: NavigationExtras = {skipLocationChange: false}): | |||
Promise<boolean> { | |||
if (typeof extras.queryParams === 'object') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&& !== null
bf6583a
to
a0914c3
Compare
@DzmitryShylovich can you rebase this please? Thanks :) |
a0914c3
to
28a0a12
Compare
28a0a12
to
01df16a
Compare
@alxhub done |
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. |
Fixes #7543