From: Raphaƫl Gertz Date: Thu, 26 Nov 2026 15:34:48 +0000 (+0100) Subject: Get route from new request layout X-Git-Tag: 0.6.0~5 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/userbundle/commitdiff_plain/54584cb90e0fb87fb60a381ab02494552640df91 Get route from new request layout --- diff --git a/Handler/AuthenticationSuccessHandler.php b/Handler/AuthenticationSuccessHandler.php index c57c68a..e67158e 100644 --- a/Handler/AuthenticationSuccessHandler.php +++ b/Handler/AuthenticationSuccessHandler.php @@ -62,7 +62,7 @@ class AuthenticationSuccessHandler extends DefaultAuthenticationSuccessHandler { */ public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response { //Set login route - $login = $request->get('_route'); + $login = $request->attributes->get('_route'); //With login path option if (!empty($loginPath = $this->options['login_path'])) {