JMSI18nRoutingBundle
JMSI18nRoutingBundle copied to clipboard
Redirect to no-prefix when the default locale prefix is manually added with prefix_except_default
Hello,
I encountered an issue and I did not find clean solutions, I want when I go to a page with the prefix of the default locale, I am redirected to the page without a prefix (which displays course the page in the default language).
For the moment with prefix_except_default :
-
http://example.com/fr/hello
display the page in French -
http://example.com/it/hello
display the page in Italian -
http://example.com/hello
display the page in English (English is my default locale) -
http://example.com/en/hello
return 404 error
What I want :
-
http://example.com/fr/hello
display the page in French -
http://example.com/it/hello
display the page in Italian -
http://example.com/hello
display the page in English (English is my default locale) -
http://example.com/en/hello
return tohttp://example.com/hello
Do you have any ideas?
Thanks