Hello all,
i am having problems with routing after updating from PR12 to Beta 1,
this is the default root of the site configuration with a default
locale appended to it that i used until Beta 1...
_site_homepage:
pattern: /{_locale}
defaults: { _controller: XabSiteBundle:Default:index, _locale:
ro }
requirements:
_locale: ro|ru
and i am getting a "No route found for "GET /" " exception when i try
to access the site after updating to Beta 1.
If i remove all the _locale info like this:
_site_homepage:
pattern: /
defaults: { _controller: XabSiteBundle:Default:index }
it the page works, but then when i want to change the language by
going to /ru or /ro i get of course a "No route found for "GET /ru" "
error...
What is the best way to handle this? Is it a bug or does it work as
expected, and i missed something?
Thank you.
P.S. Need to mention that a route like this:
_page_index:
pattern: /{_locale}/page/{slug}
defaults: { _controller: XabPageBundle:Default:index, _locale:
ro }
requirements:
_locale: ro|ru
still works as expected, so the problem only apears to be when using
{_locale} for the "/" path.
--
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 developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en