Skip to content

Commit 285b368

Browse files
shigmaMeetInInc
authored andcommitted
fix($theme-default): encodeURI for sidebar items which contain CJK characters (close: #717)
Co-Authored-By: MeetInInc <[email protected]>
1 parent 1850be7 commit 285b368

File tree

1 file changed

+1
-1
lines changed
  • packages/@vuepress/theme-default/util

1 file changed

+1
-1
lines changed

packages/@vuepress/theme-default/util/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export function resolveMatchingConfig (regularPath, config) {
192192
}
193193
}
194194
for (const base in config) {
195-
if (ensureEndingSlash(regularPath).indexOf(base) === 0) {
195+
if (ensureEndingSlash(regularPath).indexOf(encodeURI(base)) === 0) {
196196
return {
197197
base,
198198
config: config[base]

0 commit comments

Comments
 (0)