diff --git a/client/pages/Login.tsx b/client/pages/Login.tsx index d9e153f0..3cd9331d 100644 --- a/client/pages/Login.tsx +++ b/client/pages/Login.tsx @@ -399,6 +399,25 @@ export default function Login() { Continue with Roblox + { + const apiBase = + (import.meta as any)?.env?.VITE_API_BASE || + window.location.origin; + const u = new URL("/api/discord/oauth/start", apiBase); + const next = new URLSearchParams( + window.location.search, + ).get("next"); + if (next && next.startsWith("/")) + u.searchParams.set("state", next); + window.location.href = u.toString(); + }} + > + + Continue with Discord +