Hash mode places # at incorrect location in URL if current query parameters exist on page load #2125
Closed
Description
Version
3.0.1
Reproduction link
https://codesandbox.io/s/zlvz65rplp
Steps to reproduce
Navigate to myapp.com?foo=bar
What is expected?
Hash is appended before query parameters, to get the final result of myapp.com/#/?foo=bar
What is actually happening?
Hash is placed after parameters myapp.com?foo=bar#/ (also making the query parameters inaccessible with this.$route.query
)
Note on codesandbox link - unable to place query parameter for initial URL in editor preview - please remove /#/
& append ?foo=bar
Running across this in an instance where user authentication is done outside our app, but client/user identifier is passed to our app in query parameter upon authorization.
Metadata
Assignees
Labels
No labels