From 8837e7ad1758d10995c48ce79d5d6e91f7f0a135 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Tue, 3 Jul 2018 20:46:42 +0800 Subject: [PATCH] fix: cannot get sidebar when sidebar config contains non-ASCII chars. (close: #628) --- lib/default-theme/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/default-theme/util.js b/lib/default-theme/util.js index 581a6904..ef95bea5 100644 --- a/lib/default-theme/util.js +++ b/lib/default-theme/util.js @@ -4,7 +4,7 @@ export const endingSlashRE = /\/$/ export const outboundRE = /^(https?:|mailto:|tel:)/ export function normalize (path) { - return path + return decodeURI(path) .replace(hashRE, '') .replace(extRE, '') } -- GitLab