fix redirect after login

This commit is contained in:
tomasz.kasprowicz 2021-01-15 20:28:43 +01:00
parent ff7e452c6a
commit 3c333bc5ea
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ const Login = (props: any) => {
)}
</p>
</form>
{props.isAuth && <Redirect to={props.redirectTo} />}
{props.isAuth && <Redirect to={process.env.PUBLIC_URL + props.redirectTo} />}
</StyledForm>
);
};

View File

@ -8,7 +8,7 @@ const initialState = {
error: null,
userId: null,
idToken: null,
redirectTo: "",
redirectTo: "/",
};
interface ActionType {