Skip to content

Commit cc5b64d

Browse files
committed
Revert "Allow using base option with hash under history mode (#1349)"
This reverts commit f5db5b8.
1 parent 193aacb commit cc5b64d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/history/html5.js

-10
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,6 @@ export class HTML5History extends History {
6262

6363
export function getLocation (base: string): string {
6464
let path = window.location.pathname
65-
66-
// Special handling for cases where base contains hash ('#')
67-
if (base && base.indexOf('#') > -1) {
68-
path = window.location.href.replace(window.location.origin, '')
69-
if (path.indexOf(base) === 0) {
70-
// Leave the rest of the url as-is
71-
return (path.slice(base.length) || '/')
72-
}
73-
}
74-
7565
if (base && path.indexOf(base) === 0) {
7666
path = path.slice(base.length)
7767
}

0 commit comments

Comments
 (0)