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
  • Loading branch information
Sun Haoran authored and Sergey Larionov committed Aug 19, 2020
1 parent cec2bfb commit 075a2e5
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 075a2e5

Please sign in to comment.