From c53ac61501e3708367990759c8257c2e50856ebe Mon Sep 17 00:00:00 2001 From: "web@ppanel" Date: Wed, 22 Jan 2025 22:42:02 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(redirect):=20Simplify=20redi?= =?UTF-8?q?rect=20URL=20logic=20by=20removing=20unnecessary=20condition=20?= =?UTF-8?q?for=20sessionStorage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user/utils/common.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/user/utils/common.ts b/apps/user/utils/common.ts index c68e11b..1cc8055 100644 --- a/apps/user/utils/common.ts +++ b/apps/user/utils/common.ts @@ -42,10 +42,8 @@ export function getRedirectUrl() { if (url.startsWith('/oauth/') || url.startsWith('/auth')) { url = '/dashboard'; } - if (url) { - sessionStorage.removeItem('redirect-url'); - return url; - } + sessionStorage.removeItem('redirect-url'); + return url; } export function Logout() {