JMSI18nRoutingBundle icon indicating copy to clipboard operation
JMSI18nRoutingBundle copied to clipboard

Route not found with render and _

Open larsalbrecht opened this issue 8 years ago • 0 comments

I have a Controller (Service) and want to render the result of an action in a template.

I use annotations to route. Simple example:

/**
* @route("test")
*/

No I can call the action from twig with:

{{ render('/en/test') }}

If I now use "_test" as route, to disable the prefix for this, it does not work. As "workaround" I use the options to disable i18n:

/**
* @route("test", options={"i18n"=false})
*/

Not, it works. I think, its a bug, isnt it?

larsalbrecht avatar Feb 15 '16 10:02 larsalbrecht