ActivityPub-federated video streaming platform using P2P directly in your web browser
href can be null
Chocobozzz4ff7880584e1
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.tsindex fb449b4789..6948082e8b 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@@ -40,7 +40,7 @@ export class PluginPagesComponent implements OnDestroy, AfterViewInit {if (!a) return// 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')+ const href = a.getAttribute('href') || ''if (!a.target && href.startsWith('/')) {event.preventDefault()