From e8143c055b45d26fd4cb0fc583b928949cc8b24d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 17 Aug 2026 16:38:35 +0200 Subject: [PATCH] fix: always redirect to account page first on login --- src/Security/BpnAuthenticator.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Security/BpnAuthenticator.php b/src/Security/BpnAuthenticator.php index c355638..1a49219 100644 --- a/src/Security/BpnAuthenticator.php +++ b/src/Security/BpnAuthenticator.php @@ -53,7 +53,6 @@ class BpnAuthenticator extends AbstractLoginFormAuthenticator implements Authent private readonly Crypt $crypt, private readonly ProfileCompletenessChecker $completenessChecker, private readonly LoggerInterface $authLogger, - private readonly DefaultRouteResolver $defaultRouteResolver, ) { } @@ -175,10 +174,10 @@ class BpnAuthenticator extends AbstractLoginFormAuthenticator implements Authent ]); $targetPath = $this->getTargetPath($request->getSession(), $firewallName) - ?? $this->defaultRouteResolver->resolveUrl(); + ?? $this->urlGenerator->generate('app_account'); // When redirecting to admin from an HTMX request, force a full page navigation - // to avoid layout issues between frontend (hx-boost) and EasyAdmin + // to avoid layout issues between front- (hx-boost) and backend if ($request->headers->has('HX-Request') && str_contains($targetPath, '/admin')) { return new HxRedirectResponse($targetPath); }