Skip to content

Commit

Permalink
fix($theme-default): non-ASCII hash causes wrong sidebar highlight (c…
Browse files Browse the repository at this point in the history
…lose #2078)(#2166)
  • Loading branch information
Sun Haoran committed Feb 3, 2020
1 parent 0ae73cb commit ca3679c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/theme-default/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function ensureExt (path) {
}

export function isActive (route, path) {
const routeHash = route.hash
const routeHash = decodeURIComponent(route.hash)
const linkHash = getHash(path)
if (linkHash && routeHash !== linkHash) {
return false
Expand Down

0 comments on commit ca3679c

Please sign in to comment.