diff --git a/src/EventListener/LogoutSubscriber.php b/src/EventListener/LogoutSubscriber.php index be38ffa..32b587d 100644 --- a/src/EventListener/LogoutSubscriber.php +++ b/src/EventListener/LogoutSubscriber.php @@ -24,7 +24,8 @@ class LogoutSubscriber implements EventSubscriberInterface public function onLogout(LogoutEvent $event): void { - $easycheckLogoutUrl = $this->easycheckUrl . '/logout'; + // Ajouter un paramètre pour indiquer à EasyCheck de revenir au portail après logout + $easycheckLogoutUrl = $this->easycheckUrl . '/logout?redirect_to=portal'; $this->logger->info('LogoutSubscriber triggered - redirecting to EasyCheck logout', [ 'easycheck_logout_url' => $easycheckLogoutUrl,