diff --git a/src/history/html5.js b/src/history/html5.js
index bb5e51227..e8df9f746 100644
--- a/src/history/html5.js
+++ b/src/history/html5.js
@@ -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