schmittjoh / JMSI18nRoutingBundle

Allows you to internationalize your routing
http://jmsyst.com/bundles/JMSI18nRoutingBundle
358 stars 159 forks source link

Unable to generate a URL for the named route when locale not available #238

Open blackarcanis opened 5 years ago

blackarcanis commented 5 years ago

Hi, I got the error "Unable to generate a URL for the named route "%s" as such route does not exist" when trying to get a route with a "locale" param I'm not supporting (for example "PT" while I having only "FR" and "EN" supported). Why ? I got "EN" in "default_locale", so I'm expecting to not have this error and have the route to "EN" instead.

I'm doing something wrong here ? How can I have this behavior ?

kyeno commented 4 years ago

I have similar problem with default Symfony routing, https://stackoverflow.com/questions/63286922/symfony-4-multilang-routes-with-default-fallback