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