diff --git a/backend/public/js/app.js b/backend/public/js/app.js index 356e7b36..e8c063be 100644 --- a/backend/public/js/app.js +++ b/backend/public/js/app.js @@ -36459,7 +36459,8 @@ function PageChangeHandler() { if (acc_type && acc != acc_type) { axios__WEBPACK_IMPORTED_MODULE_0___default().get("/".concat(acc, "/logout")).then(function () { - window.location.href = "/".concat(acc, "/login"); + localStorage.removeItem('kiki_acc_type'); + navigator("/".concat(acc, "/login")); }); } }; diff --git a/backend/resources/js/component/page_change_handler.jsx b/backend/resources/js/component/page_change_handler.jsx index cf7e5768..7a1792ee 100644 --- a/backend/resources/js/component/page_change_handler.jsx +++ b/backend/resources/js/component/page_change_handler.jsx @@ -24,7 +24,8 @@ export default function PageChangeHandler() { if((acc_type && (acc != acc_type))) { axios.get(`/${acc}/logout`) .then(()=>{ - window.location.href = `/${acc}/login`; + localStorage.removeItem('kiki_acc_type'); + navigator(`/${acc}/login`); }) } }