Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix internal link detection, again

Chocobozzz13c11a57f06c
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 954f902894..986d341d37 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()