Skip to content

Commit

Permalink
Make links open in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
caleballdrin committed Nov 20, 2024
1 parent c0745fa commit 9b9a3c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Helpjuice/Helpjuice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const Helpjuice: React.FC = () => {
}
url.searchParams.set('mpdxUrl', window.location.href);
contactLink.href = url.toString();
contactLink.target = '_blank';
}

const knowledgeBaseLink = document.querySelector('a.knowledge-base-link');
Expand All @@ -90,6 +91,7 @@ export const Helpjuice: React.FC = () => {
knowledgeBaseLink instanceof HTMLAnchorElement
) {
knowledgeBaseLink.href = process.env.HELPJUICE_KNOWLEDGE_BASE_URL;
knowledgeBaseLink.target = '_blank';
}
}, [session, href]);

Expand Down

0 comments on commit 9b9a3c5

Please sign in to comment.