Open processor "Open in browser" CTAs in a new tab

The home-hero and download-modal "Open in browser" buttons used
window.location.href, which replaced the current tab. Switch to
window.open(..., "_blank", "noopener,noreferrer") to match the
existing EditorStatusCard behaviour.
This commit is contained in:
Connor Yoh
2026-07-15 18:09:51 +01:00
parent bef83d80a1
commit 238a8bf81c
2 changed files with 2 additions and 2 deletions
@@ -255,7 +255,7 @@ export function DownloadEditorModal({ open, onClose }: Props) {
variant="secondary"
leftSection={<OpenInNewRounded sx={{ fontSize: 15 }} />}
onClick={() => {
window.location.href = EDITOR_URL;
window.open(EDITOR_URL, "_blank", "noopener,noreferrer");
}}
>
{t("portal.home.download.openInBrowser")}
@@ -78,7 +78,7 @@ export function WelcomeBanner({ footer }: WelcomeBannerProps) {
className="portal-welcome__cta"
leftSection={<ExternalLinkIcon size={15} />}
onClick={() => {
window.location.href = EDITOR_URL;
window.open(EDITOR_URL, "_blank", "noopener,noreferrer");
}}
>
{t("portal.welcome.openInBrowser")}