Skip to content

Commit

Permalink
fix($theme-default): prev/next links disappears when url contains spa…
Browse files Browse the repository at this point in the history
…ce. (close: #1010)
  • Loading branch information
ulivz committed Nov 17, 2018
1 parent 1a87017 commit e8d728f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/theme-default/components/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function find (page, items, offset) {
})
for (let i = 0; i < res.length; i++) {
const cur = res[i]
if (cur.type === 'page' && cur.path === page.path) {
if (cur.type === 'page' && cur.path === decodeURIComponent(page.path)) {
return res[i + offset]
}
}
Expand Down

0 comments on commit e8d728f

Please sign in to comment.