Answer the question
In order to leave comments, you need to log in
How to properly redirect to the previous page in symfony2?
The point is this. There is an action for deleting (for example, books from a database). After deletion, you need to redirect to the page where you clicked the delete button. There may be several pages with such buttons. Is there a way to get the route name of the previous page and use $this->redirectToRoute() ?
Answer the question
In order to leave comments, you need to log in
Perhaps somehow you can get the name of the route of the previous page
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question