From e8d728fa0948c1ef7dea2de4a1f6d57cd1ef928c Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Sun, 18 Nov 2018 04:01:48 +0800 Subject: [PATCH] fix($theme-default): prev/next links disappears when url contains space. (close: #1010) --- packages/@vuepress/theme-default/components/Page.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/theme-default/components/Page.vue b/packages/@vuepress/theme-default/components/Page.vue index 63bd2e2e02..19b90491fc 100644 --- a/packages/@vuepress/theme-default/components/Page.vue +++ b/packages/@vuepress/theme-default/components/Page.vue @@ -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] } }