You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If current locale is EN (English): /contactus shows english page fine. (correct) /en/contactus redirects to /contactus (correct) /contacto shows 404 (should redirect to /es/contacto) /es/contacto shows spanish page fine. (correct)
If current locale is ES (Spanish): /contactus redirects to es/contacto (correct because sessionredirect) /en/contactus redirects to /contactus (correct) /contacto shows 404 (should redirect to /es/contacto) /es/contacto shows spanish page fine. (correct)
So in short, the localized uri name won't ever work. /contacto route should redirect to es/contacto rather than showing a 404.
Why is this?
Laravel 5.5
Laravel-localization 1.3.2
The text was updated successfully, but these errors were encountered:
istratos
changed the title
Translated route not redirecting if current locale does not match.
Translated route not redirecting correctly
Sep 24, 2017
+1, Subscribe to this issue.
Same goes in my case, we have 2 projects where
/test/{param}
/ru/тест/{param} works on default language
but when switching to the translated counterpart the route becomes
/тест/{param}
/ru/тест/{param}
laravel 5.5
Laravel-localization 1.3.2
Utilizing all 4 middleware for this procedure.
'hideDefaultLocaleInURL' => true,
Supporting english (default) and spanish
English route:
/contactus
Spanish route:
/es/contacto
If current locale is EN (English):
/contactus
shows english page fine. (correct)/en/contactus
redirects to/contactus
(correct)/contacto
shows 404 (should redirect to/es/contacto
)/es/contacto
shows spanish page fine. (correct)If current locale is ES (Spanish):
/contactus
redirects toes/contacto
(correct because sessionredirect)/en/contactus
redirects to/contactus
(correct)/contacto
shows 404 (should redirect to/es/contacto
)/es/contacto
shows spanish page fine. (correct)So in short, the localized uri name won't ever work.
/contacto
route should redirect toes/contacto
rather than showing a 404.Why is this?
Laravel 5.5
Laravel-localization 1.3.2
The text was updated successfully, but these errors were encountered: