Add signup redirect to preserve invite query string
cgen-0b685cbdebeb4d2b8668c1e686e82e8e
This commit is contained in:
parent
56ea7df6a9
commit
fb5a9905ed
1 changed files with 7 additions and 0 deletions
7
client/pages/SignupRedirect.tsx
Normal file
7
client/pages/SignupRedirect.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { Navigate, useLocation } from "react-router-dom";
|
||||
|
||||
export default function SignupRedirect() {
|
||||
const location = useLocation();
|
||||
const search = location.search || "";
|
||||
return <Navigate to={`/login${search}`} replace />;
|
||||
}
|
||||
Loading…
Reference in a new issue