From 648424fe2cea48fe36f4ba777dc4ef6fe7bc89d5 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 30 Nov 2022 23:00:40 -0500 Subject: [PATCH] fix: Desktop redirect on Safari --- app/scenes/DesktopRedirect.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/scenes/DesktopRedirect.tsx b/app/scenes/DesktopRedirect.tsx index 25a82aaad..d4581b96f 100644 --- a/app/scenes/DesktopRedirect.tsx +++ b/app/scenes/DesktopRedirect.tsx @@ -14,7 +14,10 @@ const DesktopRedirect = () => { React.useEffect(() => { if (token) { - window.location.href = `outline://${window.location.host}/auth/redirect?token=${token}`; + window.open( + `outline://${window.location.host}/auth/redirect?token=${token}`, + "_self" + ); // Clean the url so it's not possible to hit reload, re-using the transfer token will not work. window.location.search = "";