JMSI18nRoutingBundle icon indicating copy to clipboard operation
JMSI18nRoutingBundle copied to clipboard

Redirect to no-prefix when the default locale prefix is manually added with prefix_except_default

Open mlpo opened this issue 10 years ago • 5 comments

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 to http://example.com/hello

Do you have any ideas?

Thanks

mlpo avatar Feb 28 '14 19:02 mlpo