Skip to content

Commit

Permalink
fix(html5): fixed spacing issues (vuejs#3555)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedean committed May 20, 2021
1 parent 7e18892 commit 9fdc9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/history/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function getLocation (base: string): string {
let path = window.location.pathname
// base="/a" shouldn't turn path="/app" into "/a/pp" https://github.com/vuejs/vue-router/issues/3555
if (base && ((path.toLowerCase() === base.toLowerCase()) ||
(path.toLowerCase().indexOf(cleanPath(base.toLowerCase() + '/')) === 0))) {
(path.toLowerCase().indexOf(cleanPath(base.toLowerCase() + '/')) === 0))) {
path = path.slice(base.length)
}
return (path || '/') + window.location.search + window.location.hash
Expand Down

0 comments on commit 9fdc9e8

Please sign in to comment.