diff --git a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/layouts/header/Headers.js b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/layouts/header/Headers.js index 933aaf37d2..61615e7b46 100644 --- a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/layouts/header/Headers.js +++ b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/layouts/header/Headers.js @@ -44,8 +44,15 @@ export default function Header() { const handleLogOut = async () => { storeAccessToken(null) - await api.logout() - navigate("/login") + api.logout().then(res => { + if(res.logoutUrl){ + window.location.href = res.logoutUrl + } else { + navigate("/login") + } + }).catch(err => { + navigate("/"); + }) } const handleSwitchUI = async () => {