diff --git a/client/src/utils/dom.ts b/client/src/utils/dom.ts index 0d61d171..31c7b6d9 100644 --- a/client/src/utils/dom.ts +++ b/client/src/utils/dom.ts @@ -3,10 +3,7 @@ export const setExternalLinksToOpenInNewTab = ( ) => { const httpRegex = /^https?:\/\//i; anchors.forEach((anchor: HTMLAnchorElement) => { - if ( - httpRegex.test(anchor.href) && - !anchor.href.includes(window.location.hostname) - ) { + if (httpRegex.test(anchor.href)) { anchor.setAttribute("target", "_blank"); anchor.setAttribute("rel", "noopener noreferrer"); }