diff --git a/apps/user/utils/common.ts b/apps/user/utils/common.ts index 3c90421..2b63997 100644 --- a/apps/user/utils/common.ts +++ b/apps/user/utils/common.ts @@ -44,7 +44,7 @@ export function Logout() { const cookies = new Cookies(null, { path: '/' }); cookies.remove('Authorization'); const pathname = location.pathname; - if (!['', '/'].includes(pathname)) { + if (!['', '/', '/auth', '/tos'].includes(pathname)) { setRedirectUrl(location.pathname); location.href = `/`; }