I want to set a prefix for all controllers in the AdminBundle - "/admin". So I did it in routing.yml file:
my_admin:
prefix: /admin
Then I changed all admin bundle's route names from:
/**
* @Route("admin/home", name="admin/home")
*/
to
/**
* @Route("home", name="home")
*/
And the problem is that when I use:
return $this->redirect($this->generateUrl('admin/installation'));
It throws an exception that the route doesn't exist...before setting the prefix it worked. What's wrong?