Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3924

Redirect to "/" route in symfony

$
0
0

I'm trying to redirect to the "/" route (same page) after a form submission:

/** * @Route("/") */

My approach:

return $this->redirectToRoute('/');

Gives me the following error:

Unable to generate a URL for the named route "/" as such route does not exist.


Viewing all articles
Browse latest Browse all 3924

Trending Articles