I have a routing.yml file with a path which triggers a controller method. When the controller method finishes the operation I want to return user to the page he came from originally. I don't want to rely on the http_referer here as it is declared unsafe from Symfony already.
How can I approach this problem? Is there a way to do it using routing optional parameters? If so a little help would be appreciated.