Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9ddcf9

Browse files
committed
fix: logout window.location.replace
1 parent 216491d commit d9ddcf9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/packages/openblocks/src/redux/sagas/userSagas.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ export function* logoutSaga(action: LogoutActionType) {
149149
if (isValidResponse) {
150150
yield put(logoutSuccess());
151151
localStorage.clear();
152-
history.push(redirectURL);
153-
window.location.reload();
152+
window.location.replace(redirectURL);
154153
}
155154
} catch (error) {
156155
log.error(error);

0 commit comments

Comments
 (0)