We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d976211 commit 7e18892Copy full SHA for 7e18892
src/history/html5.js
@@ -88,8 +88,8 @@ export class HTML5History extends History {
88
export function getLocation (base: string): string {
89
let path = window.location.pathname
90
// base="/a" shouldn't turn path="/app" into "/a/pp" https://github.com/vuejs/vue-router/issues/3555
91
- if (base && ((path.toLowerCase() === base.toLowerCase())
92
- || (path.toLowerCase().indexOf(cleanPath(base.toLowerCase() + "/")) === 0))) {
+ if (base && ((path.toLowerCase() === base.toLowerCase()) ||
+ (path.toLowerCase().indexOf(cleanPath(base.toLowerCase() + '/')) === 0))) {
93
path = path.slice(base.length)
94
}
95
return (path || '/') + window.location.search + window.location.hash
0 commit comments