X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/7dc96408477ff4f0b4a965ef46b364e81faa97a9..d442deb5f5c4f965819cbb0e290d95b702ab1db0:/Security/LogoutSuccessHandler.php 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);