This commit is contained in:
parent
d353f68354
commit
a1acfccba5
|
|
@ -38,7 +38,7 @@ export default function ChangePasswordPage() {
|
|||
|
||||
|
||||
|
||||
|
||||
console.log("...........[login page.tsx]")
|
||||
router.push(`${homePath}/login`)
|
||||
// router.push(`${locale}/login`)
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ export default function SetupPage() {
|
|||
|
||||
if (!session) {
|
||||
// 强制跳转到带有 locale 的 login 页面
|
||||
console.log("...........[setup/page.tsx]")
|
||||
return router.push(`${homePath}/login`)
|
||||
// return router.push(`/${locale}/login`)
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ export function LanguageSwitcher() {
|
|||
|
||||
startTransition(() => {
|
||||
if (pathname !== newPath) {
|
||||
console.log("...........[language-switcher]...]")
|
||||
router.push(newPath)
|
||||
} else {
|
||||
router.refresh()
|
||||
|
|
|
|||
|
|
@ -198,6 +198,7 @@ export const ProfileSettings: FC<ProfileSettingsProps> = ({}) => {
|
|||
locale = segment
|
||||
}
|
||||
const homePath = locale === defaultLocale ? "/" : `/${locale}`
|
||||
console.log("...........[profile-setting.tsx]")
|
||||
router.push(homePath)
|
||||
router.refresh()
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue