From 88e9c67c0f1f4d707b7e18c6f861786e418e43b9 Mon Sep 17 00:00:00 2001 From: Aldarund Date: Tue, 4 Sep 2018 13:16:05 +0300 Subject: [PATCH 1/2] fix initial url path for non ascii urls --- 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 95c47344c..94161ad41 100644 --- a/src/history/html5.js +++ b/src/history/html5.js @@ -72,7 +72,7 @@ export class HTML5History extends History { } export function getLocation (base: string): string { - let path = window.location.pathname + let path = decodeURIComponent(window.location.pathname) if (base && path.indexOf(base) === 0) { path = path.slice(base.length) } From a515fdedefd5d7731e65aa1b9bfba255fb3ab9a9 Mon Sep 17 00:00:00 2001 From: Aldarund Date: Tue, 4 Sep 2018 15:52:21 +0300 Subject: [PATCH 2/2] change decodeURIComponent -> decodeURI --- 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 94161ad41..e1cdba97d 100644 --- a/src/history/html5.js +++ b/src/history/html5.js @@ -72,7 +72,7 @@ export class HTML5History extends History { } export function getLocation (base: string): string { - let path = decodeURIComponent(window.location.pathname) + let path = decodeURI(window.location.pathname) if (base && path.indexOf(base) === 0) { path = path.slice(base.length) }