From 37059262c45236cc54c231706465e63e0dd18086 Mon Sep 17 00:00:00 2001 From: Jason Cheong Date: Tue, 30 Oct 2018 14:25:00 +0800 Subject: [PATCH] make base option case insensitive --- src/history/html5.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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