From 238a8bf81cc685e8fc7057a0def37182bc4909c0 Mon Sep 17 00:00:00 2001 From: Connor Yoh Date: Wed, 15 Jul 2026 18:09:51 +0100 Subject: [PATCH] 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. --- frontend/editor/src/portal/components/DownloadEditorModal.tsx | 2 +- frontend/editor/src/portal/components/WelcomeBanner.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/editor/src/portal/components/DownloadEditorModal.tsx b/frontend/editor/src/portal/components/DownloadEditorModal.tsx index 3a4c9bb29d..602e3ca530 100644 --- a/frontend/editor/src/portal/components/DownloadEditorModal.tsx +++ b/frontend/editor/src/portal/components/DownloadEditorModal.tsx @@ -255,7 +255,7 @@ export function DownloadEditorModal({ open, onClose }: Props) { variant="secondary" leftSection={} onClick={() => { - window.location.href = EDITOR_URL; + window.open(EDITOR_URL, "_blank", "noopener,noreferrer"); }} > {t("portal.home.download.openInBrowser")} diff --git a/frontend/editor/src/portal/components/WelcomeBanner.tsx b/frontend/editor/src/portal/components/WelcomeBanner.tsx index 0d56e85730..c1d6857bdb 100644 --- a/frontend/editor/src/portal/components/WelcomeBanner.tsx +++ b/frontend/editor/src/portal/components/WelcomeBanner.tsx @@ -78,7 +78,7 @@ export function WelcomeBanner({ footer }: WelcomeBannerProps) { className="portal-welcome__cta" leftSection={} onClick={() => { - window.location.href = EDITOR_URL; + window.open(EDITOR_URL, "_blank", "noopener,noreferrer"); }} > {t("portal.welcome.openInBrowser")}