From face7811c2831b44504edc080c60aeaf0a11e81a Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Sun, 22 Jan 2023 00:09:44 -0800 Subject: [PATCH] add a temporary fix for routerMode:history breaking external links. that'll be fixed in https://github.com/docsifyjs/docsify/pull/1967 --- docsify.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docsify.config.js b/docsify.config.js index 1a3459d..ea6069b 100644 --- a/docsify.config.js +++ b/docsify.config.js @@ -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: {