Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Open processor "Open in browser" CTAs in a new tab (#7045)

ConnorYoh2118de0bb7f0
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={<OpenInNewRounded sx={{ fontSize: 15 }} />}
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={<ExternalLinkIcon size={15} />}
onClick={() => {
- window.location.href = EDITOR_URL;
+ window.open(EDITOR_URL, "_blank", "noopener,noreferrer");
}}
>
{t("portal.welcome.openInBrowser")}