From 54584cb90e0fb87fb60a381ab02494552640df91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 26 Nov 2026 16:34:48 +0100 Subject: [PATCH] Get route from new request layout --- Handler/AuthenticationSuccessHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) { -- 2.52.0