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 initial url path for non ascii urls #2375

Merged
merged 2 commits into from
Sep 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix initial url path for non ascii urls
  • Loading branch information
aldarund committed Sep 4, 2018
commit 88e9c67c0f1f4d707b7e18c6f861786e418e43b9
2 changes: 1 addition & 1 deletion src/history/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class HTML5History extends History {
}

export function getLocation (base: string): string {
let path = window.location.pathname
aldarund marked this conversation as resolved.
Show resolved Hide resolved
let path = decodeURIComponent(window.location.pathname)
if (base && path.indexOf(base) === 0) {
path = path.slice(base.length)
}
Expand Down