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
rc2 Router strips extra arguments from the path after matching a route #11233
Comments
I see. It makes sense to remove them by default. However there doesn't seem to be a way to specify those options in the route configuration:
|
Your question sounds like a support request. Please use the issue tracker only for bugs and feature requests. Use gitter and StackOverflow for support request. |
I wonder why you think this is a support request. There isn't a single question in this issue.
|
@vicb I also think that adding a config parameter to the route config is a valid feature request. |
FWIW, I put together a quick and dirty way of ensuring the parameters are always preserved. You just have to override the
Then of course in your
Note that I am using Angular 5 at this point. Not sure why this isn't a configurable thing. |
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. |
I'm submitting a ... (check one with "x")
I am trying to implement OAuth2 implicit flow. It redirects to a specified url with a hash appended -
#access_token
. This is a problem with HashLocationStrategy because it looks for a matching route.As a workaround I just defined a route that redirects to the root.
Current behavior
In rc2 the router started to strip everything in the URL - for example the value of the access_token.
Expected/desired behavior
In rc1 the router didn't strip anything from the URL and all hashes remained untouched.
Reproduction of the problem
If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: