From cbe5f0d509098d8d07fb947c0271c7a909666bf4 Mon Sep 17 00:00:00 2001 From: "web@ppanel" Date: Thu, 14 Nov 2024 01:43:55 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(utils):=20Login=20redirect?= =?UTF-8?q?=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user/utils/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = `/`; }