-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locale in path #92
Comments
Actually this configuration works! BUT it does not work, if between |
Hey @aistis- |
@aistis- you can import a route file with a prefix like: my_fruits:
resource: '@MyFruitsBundle/Resources/config/routing/banana.yml'
type: be_simple_i18n
prefix:
en: en
fr: fr 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 |
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: