Open istratos opened 7 years ago
+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
+1
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