diff --git a/src/pages/auth.tsx b/src/pages/auth.tsx index 1f92738a..55812838 100644 --- a/src/pages/auth.tsx +++ b/src/pages/auth.tsx @@ -17,7 +17,8 @@ export default function Auth(): JSX.Element { if (is_logged_in) { const params = new URLSearchParams(search); - const redirect_route = params.get('route').replace(/%2F/g, '/') || '/'; + const redirect_route = params.get('route')?.replace(/%2F/g, '/') || '/'; + return ; }