BeSimple/BeSimpleI18nRoutingBundle — Issue #17: Routes in layout
Author: EmmanuelVella
Created: 2011-12-10 11:50:06+00:00
State: open

I use routes prefixed with locales (ex : /en/my-route)

In production mode, if i call an url that doesn't exist, I got a ```503 Service Unavailable``` error, and this message in my log :

```
Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Route "my_route" does not exist.")
```

I found out that routes defined in the layout only work if the locale is specified :

*Doesn't work*
path('my_route')

*Does work*
path('my_route.en')
path('my_route', {'_locale': app.session.locale})