diff --git a/frontend/editor/src/core/services/postLoginRedirect.ts b/frontend/editor/src/core/services/postLoginRedirect.ts index 7386ab8a7f..d9ffe82940 100644 --- a/frontend/editor/src/core/services/postLoginRedirect.ts +++ b/frontend/editor/src/core/services/postLoginRedirect.ts @@ -3,7 +3,11 @@ */ export function isSafePostLoginRedirect(path: unknown): path is string { if (typeof path !== "string" || path.length === 0) return false; - if (!path.startsWith("/") || path.startsWith("//") || path.startsWith("/\\")) { + if ( + !path.startsWith("/") || + path.startsWith("//") || + path.startsWith("/\\") + ) { return false; } const lowered = path.toLowerCase();