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)
  • Loading branch information
ulivz committed Jul 3, 2018
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
Expand Up @@ -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, '')
}
Expand Down

0 comments on commit 8837e7a

Please sign in to comment.