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
Actually this configuration works! BUT it does not work, if between app/config/routing.yml and src/My/FruitsBundle/Resources/config/routing/banana.yml exist middleware routing file with no prefix defined. I18nGenerator is not able to generate prefixed paths anymore.
Hey @aistis-
I try to achieve exaclty that. I can't make it work though.
Are you saying it works? I tried to add a prefix in app/config/routing.yml, but example.com/fr/banana still send back a 200.
This is not only strict, it's also WAY more performant in terms of route matching. Because the dumped Symfony routes does static prefix optimisations in order to prevent regex matches, with the way you do it every route check is a regex. For more tips on this, I blogged about it: https://blog.frankdejonge.nl/symfony-routing-performance-considerations/
Note that the route definition itself needs to be imported as type: be_simple_i18n.
Hello,
I have a case where the paths of the site looks:
My current routing definition:
How would be possible to deny paths with mismatched
_locale
and parameter with a translation locale?What I want to achieve:
The text was updated successfully, but these errors were encountered: