I have a route defined like this (controller has a prefix /email
):
/**
* Opens send dialog
*
* @Route("/compose/{redirect_to}", name="email_compose", defaults={"redirect_to" = "/"})
* @Method({"GET", "POST"})
* @Template("EmailBundle:Email:compose.html.twig")
*/
I try to call this route via a javascript ajax POST, but even with a GET request I have routing errors:
http://example.com/app_dev.php/email/compose/%2Fapp_dev.php%2Fcurrent%2Fdetail%2F7
This throws a 404 error:
The requested URL /app_dev.php/email/compose//app_dev.php/current/detail/7 was not found on this server
If I try a simpler call like this one, it works properly:
http://example.com/app_dev.php/email/compose/aaa
How can I pass a parameter in querystring that is an URI?
Thank you