Skip to content

Commit 7f99675

Browse files
committed
fix: decode href in sidebar (docsifyjs#1032)
1 parent bfdc537 commit 7f99675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/event/sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function getAndActive(router, el, isParent, autoTitle) {
8383
links
8484
.sort((a, b) => b.href.length - a.href.length)
8585
.forEach(a => {
86-
const href = a.getAttribute('href');
86+
const href = decodeURI(a.getAttribute('href'));
8787
const node = isParent ? a.parentNode : a;
8888

8989
a.title = a.title || a.innerText;

0 commit comments

Comments
 (0)