From e29dc948c7edbcfda75e2fc6bb93fe638c2941b2 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 21 Apr 2025 01:39:01 +0800 Subject: [PATCH] . --- components/utility/profile-settings.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/utility/profile-settings.tsx b/components/utility/profile-settings.tsx index 2aedc8b..373be95 100644 --- a/components/utility/profile-settings.tsx +++ b/components/utility/profile-settings.tsx @@ -146,9 +146,10 @@ export const ProfileSettings: FC = ({}) => { locale = segment } - const loginPath = locale === defaultLocale ? "/login" : `/${locale}/login` + // const loginPath = locale === defaultLocale ? "/login" : `/${locale}/login` + const homePath = locale === defaultLocale ? "/" : `/${locale}` - router.push(loginPath) + router.push(homePath) router.refresh() return }