fix: /desktop-redirect should never be post-login saved path (#10237)

This commit is contained in:
Tom Moor
2025-09-23 03:59:09 +02:00
committed by GitHub
parent 63c5938a43
commit fa93092f79
+1 -1
View File
@@ -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/")
);