Skip to content

Commit ca3679c

Browse files
author
Sun Haoran
authored
fix($theme-default): non-ASCII hash causes wrong sidebar highlight (close #2078)(#2166)
1 parent 0ae73cb commit ca3679c

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

packages/@vuepress/theme-default/util/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function ensureExt (path) {
4343
}
4444

4545
export function isActive (route, path) {
46-
const routeHash = route.hash
46+
const routeHash = decodeURIComponent(route.hash)
4747
const linkHash = getHash(path)
4848
if (linkHash && routeHash !== linkHash) {
4949
return false

0 commit comments

Comments
 (0)