Skip to content

Commit

Permalink
add a temporary fix for routerMode:history breaking external links. t…
Browse files Browse the repository at this point in the history
…hat'll be fixed in docsifyjs/docsify#1967
  • Loading branch information
trusktr committed Jan 22, 2023
1 parent 728ca06 commit face781
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docsify.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
return editTop + content + editBottom
})
},

// plugin to add target=_self behavior to the LUME logo until docsify#1803 is fixed.
hook =>
hook.mounted(() => {
const link = document.querySelector('.app-name-link')
link.addEventListener('click', () => (globalThis.location = link.href))
}),
]),

markdown: {
Expand Down

0 comments on commit face781

Please sign in to comment.