Skip to content

Commit 5fcbd88

Browse files
authored
fix: scroll hash encoded when non-english chars are used fix #2633 (#2639)
1 parent 35865ec commit 5fcbd88

File tree

1 file changed

+1
-1
lines changed
  • packages/@vuepress/core/lib/client

1 file changed

+1
-1
lines changed

packages/@vuepress/core/lib/client/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export async function createApp (isServer) {
7777
return false
7878
}
7979
return {
80-
selector: to.hash
80+
selector: decodeURIComponent(to.hash)
8181
}
8282
} else {
8383
return { x: 0, y: 0 }

0 commit comments

Comments
 (0)