diff --git a/src/Controller/Booking/Create/IndexController.php b/src/Controller/Booking/Create/IndexController.php index b61fcbd..096d538 100644 --- a/src/Controller/Booking/Create/IndexController.php +++ b/src/Controller/Booking/Create/IndexController.php @@ -116,6 +116,10 @@ class IndexController extends AbstractController // Clear the booking session $this->bookingService->clearBookingSession($request); + // Clear the security target path to prevent redirect loop after login + // Without this, logging in after cancel would redirect back to a stale booking URL + $request->getSession()->remove('_security.main.target_path'); + // Add a flash message to inform the user $this->addFlash('info', 'Buchung abgebrochen.');