From 13c11a57f06cbe98d704a5c0eb07f8ad05ad5300 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 20 Jun 2024 10:48:51 +0200 Subject: [PATCH] Fix internal link detection, again --- .../app/shared/shared-plugin-pages/plugin-pages.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/shared/shared-plugin-pages/plugin-pages.component.ts b/client/src/app/shared/shared-plugin-pages/plugin-pages.component.ts index 954f90289..986d341d3 100644 --- a/client/src/app/shared/shared-plugin-pages/plugin-pages.component.ts +++ b/client/src/app/shared/shared-plugin-pages/plugin-pages.component.ts @@ -43,7 +43,7 @@ export class PluginPagesComponent implements OnDestroy, AfterViewInit { // Get the href attribute set by the dev, not the one calculated by JS to detect if it's a relative/external link const href = a.getAttribute('href') - if (a.target !== '_blank' && !href.startsWith('/')) { + if (a.target !== '_blank' && href.startsWith('/')) { event.preventDefault() event.stopPropagation()