This commit is contained in:
parent
53371f3523
commit
e29dc948c7
|
|
@ -146,9 +146,10 @@ export const ProfileSettings: FC<ProfileSettingsProps> = ({}) => {
|
|||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue