diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index a12b3f5..87637f6 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -45,7 +45,7 @@ public function login(AuthenticationUtils $authenticationUtils): Response return $this->render('security/login.html.twig', ['last_username' => $lastUsername, 'error' => $error]); } - #[Route('/logout', name: 'app_logout')] + #[Route('/{_locale}/logout', name: 'app_logout')] public function logout(): void { throw new LogicException('This method can be blank - it will be intercepted by the logout key on your firewall.');