This commit is contained in:
parent
6b450fc03a
commit
53371f3523
|
|
@ -34,7 +34,7 @@ export default function HomeRedirector() {
|
|||
const pathLocale = currentPath.split('/')[1]
|
||||
const hasLocaleInPath = isValidLocale(pathLocale)
|
||||
|
||||
if (!hasLocaleInPath) {
|
||||
if (currentPath === "/" && !hasLocaleInPath) {
|
||||
const newPath = `/${preferred}${currentPath}`
|
||||
console.log('[HomeRedirector] Redirecting to:', newPath)
|
||||
router.replace(newPath)
|
||||
|
|
|
|||
Loading…
Reference in New Issue