From fa93092f7930ff92b9c62a92f3a4f47d089fdfb2 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 23 Sep 2025 03:59:09 +0200 Subject: [PATCH] fix: /desktop-redirect should never be post-login saved path (#10237) --- app/utils/urls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/urls.ts b/app/utils/urls.ts index 40aa1ac2b8..14109a880e 100644 --- a/app/utils/urls.ts +++ b/app/utils/urls.ts @@ -55,7 +55,7 @@ export function redirectTo(url: string) { export const isAllowedLoginRedirect = (input: string) => { const path = input.split("?")[0].split("#")[0]; return ( - !["/", "/create", "/home", "/logout"].includes(path) && + !["/", "/create", "/home", "/logout", "/desktop-redirect"].includes(path) && !path.startsWith("/auth/") && !path.startsWith("/s/") );