I'm trying to create a special route that handles confirmation of a certain action. For instance, if I'm trying to access a route /admin/user/1/delete
, I want to go to a different route first to show a special html page that confirms they want to complete an action (ie. confirm/admin/user/1/delete) and on the page there's a confirm button that goes to the route and a go back button that redirects to the referrer.
In the example below, is there a way to allow {route} to be anything and pass that into a twig page?
/**
* @Route("/confirm/{route}", name="confirm_dialog")
* @param type $route
*/
public function confirmAction($route)
{
}