fix(ui) - redirect fix
This commit is contained in:
parent
a46d842c0b
commit
0cb6341988
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ class Router extends React.Component {
|
|||
const destinationPath = localStorage.getItem(GLOBAL_DESTINATION_PATH);
|
||||
if (!isLoggedIn && !location.pathname.includes('login')) {
|
||||
localStorage.setItem(GLOBAL_DESTINATION_PATH, location.pathname);
|
||||
} else if (isLoggedIn && !location.pathname.includes(destinationPath)) {
|
||||
} else if (isLoggedIn && destinationPath && !location.pathname.includes(destinationPath)) {
|
||||
this.props.history.push(destinationPath || '/');
|
||||
localStorage.removeItem(GLOBAL_DESTINATION_PATH);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue