diff --git a/client/pages/Login.tsx b/client/pages/Login.tsx index f828c3b3..7e493cd0 100644 --- a/client/pages/Login.tsx +++ b/client/pages/Login.tsx @@ -343,10 +343,15 @@ export default function Login() { variant="outline" className="w-full hover-lift interactive-scale" onClick={() => { - const apiBase = (import.meta as any)?.env?.VITE_API_BASE || window.location.origin; + const apiBase = + (import.meta as any)?.env?.VITE_API_BASE || + window.location.origin; const u = new URL("/api/roblox/oauth/start", apiBase); - const next = new URLSearchParams(window.location.search).get("next"); - if (next && next.startsWith("/")) u.searchParams.set("state", next); + const next = new URLSearchParams( + window.location.search, + ).get("next"); + if (next && next.startsWith("/")) + u.searchParams.set("state", next); window.location.href = u.toString(); }} >