Skip to content

Commit 8837e7a

Browse files
committed
fix: cannot get sidebar when sidebar config contains non-ASCII chars. (close: #628)
1 parent 75ac38a commit 8837e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/default-theme/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const endingSlashRE = /\/$/
44
export const outboundRE = /^(https?:|mailto:|tel:)/
55

66
export function normalize (path) {
7-
return path
7+
return decodeURI(path)
88
.replace(hashRE, '')
99
.replace(extRE, '')
1010
}

0 commit comments

Comments
 (0)