Don’t intercept navigation to external URLs in Markdown

Fixes 928

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
This commit is contained in:
Thomas Scholtes
2023-07-14 09:29:19 +02:00
committed by Rūdolfs Ošiņš
parent b797c6a3f7
commit f80b193bbd
2 changed files with 17 additions and 2 deletions
+4 -2
View File
@@ -45,8 +45,10 @@
return;
}
event.preventDefault();
void router.navigateToUrl("push", url);
if (url.origin === window.origin) {
event.preventDefault();
void router.navigateToUrl("push", url);
}
}
function render(content: string): string {