mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix auth redirect not including url hash
This commit is contained in:
@@ -14,7 +14,9 @@ export default function PrivateRoute({ render, ...props }: IPrivateRouteProps) {
|
||||
if (!!currentUser) return <Route {...props} render={render} />;
|
||||
|
||||
const redirect =
|
||||
(props.location?.pathname ?? "") + (props.location?.search ?? "");
|
||||
(props.location?.pathname ?? "") +
|
||||
(props.location?.search ?? "") +
|
||||
(props.location?.hash ?? "");
|
||||
|
||||
if (currentUser === null)
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user