From 7fc70ba5c6fa0cc7164a95a05bed1d34226a83b1 Mon Sep 17 00:00:00 2001 From: Ivan Izobov <54995954+Izobov@users.noreply.github.com> Date: Sat, 22 Jun 2024 11:47:34 +0300 Subject: [PATCH] fix: redirects (#2211) (#2212) --- src/lib/utils/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/user.ts b/src/lib/utils/user.ts index 8527a33c7..736ed4419 100644 --- a/src/lib/utils/user.ts +++ b/src/lib/utils/user.ts @@ -157,7 +157,7 @@ export async function logoutUser redirectLink = `/${userLang == 'en' || userLang == undefined ? '' : userLang}` ; - if (currentRouteId != 'AuthorsPage') + if (currentRouteId === "Standard" || currentRouteId === "ProfilePage") await gotoSW ( redirectLink,