From: Raphaƫl Gertz Date: Wed, 11 Dec 2019 08:22:22 +0000 (+0100) Subject: Remove _canonical_route from _route_params X-Git-Tag: 0.1.1~18 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/commitdiff_plain/48ac8640c9a6bf908a754022eb149202ba3af8f8?hp=b8a4818439c3b078853d12c566462e767e1ebc5d Remove _canonical_route from _route_params --- diff --git a/Security/LogoutSuccessHandler.php b/Security/LogoutSuccessHandler.php index de4d960..3ac33f7 100644 --- a/Security/LogoutSuccessHandler.php +++ b/Security/LogoutSuccessHandler.php @@ -47,7 +47,7 @@ class LogoutSuccessHandler implements LogoutSuccessHandlerInterface { } //Remove route and controller from route defaults - unset($route['_route'], $route['_controller']); + unset($route['_route'], $route['_controller'], $route['_canonical_route']); //Generate url $url = $this->router->generate($name, $route); @@ -71,7 +71,7 @@ class LogoutSuccessHandler implements LogoutSuccessHandlerInterface { } //Remove route and controller from route defaults - unset($route['_route'], $route['_controller']); + unset($route['_route'], $route['_controller'], $route['_canonical_route']); //Generate url $url = $this->router->generate($name, $route); @@ -97,7 +97,7 @@ class LogoutSuccessHandler implements LogoutSuccessHandlerInterface { $defaults = $route->getDefaults(); //Remove route and controller from route defaults - unset($defaults['_route'], $defaults['_controller']); + unset($defaults['_route'], $defaults['_controller'], $defaults['_canonical_route']); //Generate url $url = $this->router->generate($name, $defaults);