From 5fcbd8884ca912c997ad264834eafa1a0a9b09b8 Mon Sep 17 00:00:00 2001 From: Derek Pollard Date: Fri, 2 Oct 2020 15:06:48 -0500 Subject: [PATCH] fix: scroll hash encoded when non-english chars are used fix #2633 (#2639) --- packages/@vuepress/core/lib/client/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/core/lib/client/app.js b/packages/@vuepress/core/lib/client/app.js index 85b27d7ba9..39a5dccef9 100644 --- a/packages/@vuepress/core/lib/client/app.js +++ b/packages/@vuepress/core/lib/client/app.js @@ -77,7 +77,7 @@ export async function createApp (isServer) { return false } return { - selector: to.hash + selector: decodeURIComponent(to.hash) } } else { return { x: 0, y: 0 }