diff --git a/src/history/html5.js b/src/history/html5.js index e1cdba97d..d4a47632e 100644 --- a/src/history/html5.js +++ b/src/history/html5.js @@ -73,7 +73,7 @@ export class HTML5History extends History { export function getLocation (base: string): string { let path = decodeURI(window.location.pathname) - if (base && path.indexOf(base) === 0) { + if (base && path.toLowerCase().indexOf(base.toLowerCase()) === 0) { path = path.slice(base.length) } return (path || '/') + window.location.search + window.location.hash