diff --git a/src/utils/PrivateRoute.tsx b/src/utils/PrivateRoute.tsx index f97fe756..0418aa3c 100644 --- a/src/utils/PrivateRoute.tsx +++ b/src/utils/PrivateRoute.tsx @@ -14,7 +14,9 @@ export default function PrivateRoute({ render, ...props }: IPrivateRouteProps) { if (!!currentUser) return ; const redirect = - (props.location?.pathname ?? "") + (props.location?.search ?? ""); + (props.location?.pathname ?? "") + + (props.location?.search ?? "") + + (props.location?.hash ?? ""); if (currentUser === null) return (