-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Router: link urls doesn't have query string parameters #7367
Comments
@petebacondarwin was this possibly caused by your recent refactoring? |
Refactoring is definitely not the cause. The original @zanettin's issue was created 21 days ago. @petebacondarwin I doubt that it will work in the latest master (actually I'm sure it won't). The cause of the error: |
OK I accept that it is a bug. Just for my sake, can you explain a bit about why this error does not appear when you have JS enabled? Something different going on in Universal? |
@petebacondarwin When javascript is disabled |
Thanks, @petebacondarwin . Just to demonstrate the issue I've created this plunk. Look at |
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. |
Copy of @zanettin's issue from angular/router#397
When I click on a routerLink
LINK:
CONFIG:
with disabled JS, this URL gets called => http://localhost:3000/route-params-test/1919/it and the query string won't appear. With activated JS everything works as expected.
The reason of the problem is here. As you can see
urlParams
are used only in_stringifyMatrixParams()
which is called only if we haveauxInstructions
(see here). So if we don't have auxilary routes thenurlParams
will never be used. (toLinkUrl()
is called here to updatehref
of the link)@matsko @btford @IgorMinar
The text was updated successfully, but these errors were encountered: