Skip to content

Commit face781

Browse files
committed
add a temporary fix for routerMode:history breaking external links. that'll be fixed in docsifyjs/docsify#1967
1 parent 728ca06 commit face781

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docsify.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
return editTop + content + editBottom
4545
})
4646
},
47+
48+
// plugin to add target=_self behavior to the LUME logo until docsify#1803 is fixed.
49+
hook =>
50+
hook.mounted(() => {
51+
const link = document.querySelector('.app-name-link')
52+
link.addEventListener('click', () => (globalThis.location = link.href))
53+
}),
4754
]),
4855

4956
markdown: {

0 commit comments

Comments
 (0)