auth redirect preserves location state

This commit is contained in:
Sidney Alcantara
2022-09-29 14:45:02 +10:00
parent 21efbd1cc5
commit 3b7c142a0c

View File

@@ -31,6 +31,7 @@ export default function RequireAuth({
<Navigate
to={ROUTES.auth + `?redirect=${encodeURIComponent(redirect)}`}
replace
state={location.state}
/>
);