Hi everybody, I'm having problem with my routes when trying to use the _locale, it works fine if I set fr or en but it does not take into account the default value with a url /cool : Here my route : cool: pattern: /{_locale}/cool defaults: { _controller: AcmeDemoBundle:Demo:index, _locale: en } requirements: _locale: en|fr Here the ouptut of the router debug, the regex is not good apparently : [router] Route "cool" Name cool Pattern /{_locale}/cool Class Symfony\Component\Routing\CompiledRoute Defaults _controller: Acme\DemoBundle\Controller\DemoController:: indexAction _locale: en Requirements _locale: fr|en Options compiler_class: Symfony\Component\Routing\RouteCompiler Regex #^ /(?P<_locale>fr|en) /cool $#x I have the same problem while setting a {var} in the beginning of the route, if it is not in the beginning there is no problem. Any idea ?? Thanks Christophe
-- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en