Skip to content

Commit

Permalink
fix: cannot get sidebar when sidebar config contains non-ASCII chars. (
Browse files Browse the repository at this point in the history
…close: #628)
ulivz committed Jul 3, 2018

Verified

This commit was signed with the committer’s verified signature.
vjik Sergei Predvoditelev
1 parent 75ac38a commit 8837e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/default-theme/util.js
Original file line number Diff line number Diff line change
@@ -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, '')
}

0 comments on commit 8837e7a

Please sign in to comment.