fix redirect after login
This commit is contained in:
parent
ff7e452c6a
commit
3c333bc5ea
@ -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>
|
||||
);
|
||||
};
|
||||
|
@ -8,7 +8,7 @@ const initialState = {
|
||||
error: null,
|
||||
userId: null,
|
||||
idToken: null,
|
||||
redirectTo: "",
|
||||
redirectTo: "/",
|
||||
};
|
||||
|
||||
interface ActionType {
|
||||
|
Loading…
Reference in New Issue
Block a user