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(history): ensure base is normalized in memory history #1112

Merged
merged 1 commit into from Sep 10, 2021

Conversation

david50407
Copy link
Contributor

Ensure base is normalized in memory history.

When using memory history with slash-trailing base (e.g. /foo/), router.resolve().href will combine base and normalized location (e.g. /bar/) directly, this will cause double-slashes in href url.
To fix this issue, ensure base is normalized just like we have done in html5/hash history.

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.

Nice catch, thanks!

@posva posva changed the title fix(memory): ensure base is normalized fix(history): ensure base is normalized in memory history Sep 10, 2021
@posva posva merged commit 198a5bd into vuejs:master Sep 10, 2021
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.

None yet

2 participants