Skip to content
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 "#" placed incorrectly when query string is present on load (#2125) #2253

Closed

Conversation

devin-brenton
Copy link

@devin-brenton devin-brenton commented Jun 11, 2018

When navigating to a URL with a query string like myapp.com?foo=bar in hash mode, the hash is currently placed after the query string myapp.com?foo=bar#/

This fix correctly parses URLs with query strings so that the above URL will be myapp.com/#/?foo=bar after loading.

…s#2125)

When navigating to a URL with a query string like myapp.com?foo=bar in hash mode, the hash is currently placed after the query string myapp.com?foo=bar#/

This fix correctly parses URLs with query strings so that the above URL will be myapp.com/#/?foo=bar after loading.
Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for your contribution. Unfortunately, this will implicitly keep query parameters when navigating between routes

@devin-brenton
Copy link
Author

@posva thanks for the quick review. I noticed the behavior you're describing when navigating routes, but I wasn't sure what the desired behavior should be. Thanks for clearing that up.

@emanuelmutschlechner
Copy link
Contributor

I've submitted a PR #2262 which addresses this issue

@posva posva closed this Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants