Skip to content

Commit e8d728f

Browse files
committed
fix($theme-default): prev/next links disappears when url contains space. (close: #1010)
1 parent 1a87017 commit e8d728f

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

packages/@vuepress/theme-default/components/Page.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function find (page, items, offset) {
191191
})
192192
for (let i = 0; i < res.length; i++) {
193193
const cur = res[i]
194-
if (cur.type === 'page' && cur.path === page.path) {
194+
if (cur.type === 'page' && cur.path === decodeURIComponent(page.path)) {
195195
return res[i + offset]
196196
}
197197
}

0 commit comments

Comments
 (0)