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 Service: Default Query Param Values are Serialized to the URL #16973
Comments
Confirmed! |
Turns out this is deliberate behavior described in the Router Service RFC. It's implemented here as part of this commit and there's even a test. This behavior is not documented anywhere other than the RFC so I'll open a PR with some documentation. |
@rwjblue the Router Service RFC describes adding a symbol |
Adding @miguelcobain and @chadhietala since you've worked on the RFC and Router service and may have some comments. |
Docs were fixed in |
I have a route with a default query param specified in the controller. If I transition to this route using a
link-to
, a controller action, or a route action, the default query param is not serialized to the URL. However, if I transition by using the router service, by callingrouter.transitionTo(...)
, the default value does appear in the URL.Here's a reproduction twiddle.
Possibly related to #16594, although I don't get any errors in the console.
The text was updated successfully, but these errors were encountered: