feat: set redirect in state
This commit is contained in:
@ -155,7 +155,7 @@ const AuthLayout = () => {
|
||||
verificationRequired &&
|
||||
!location.pathname.startsWith("/verify")
|
||||
) {
|
||||
return <Navigate to="/verify" />;
|
||||
return <Navigate to="/verify" state={{ from: location.pathname }} />;
|
||||
}
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user