]> Raphaël G. Git Repositories - airbundle/commitdiff
Remove _canonical_route from _route_params
authorRaphaël Gertz <git@rapsys.eu>
Wed, 11 Dec 2019 08:22:22 +0000 (09:22 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 11 Dec 2019 08:22:22 +0000 (09:22 +0100)
Security/LogoutSuccessHandler.php

index de4d960327b5c3a1c7f14e677d71731d8504727f..3ac33f72c1cbaa34c41102a8470df02cb26f795e 100644 (file)
@@ -47,7 +47,7 @@ class LogoutSuccessHandler implements LogoutSuccessHandlerInterface {
                                }
 
                                //Remove route and controller from route defaults
                                }
 
                                //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);
 
                                //Generate url
                                $url = $this->router->generate($name, $route);
@@ -71,7 +71,7 @@ class LogoutSuccessHandler implements LogoutSuccessHandlerInterface {
                                }
 
                                //Remove route and controller from route defaults
                                }
 
                                //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);
 
                                //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
                                $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);
 
                                //Generate url
                                $url = $this->router->generate($name, $defaults);