feat: improved error handling and redirect on invalid session

This commit is contained in:
Björn Fromme committed 2025-12-08 16:00:02 +01:00
1 parent 390ee81675
commit cd2765bab5
7 files changed
+48 -12

No files matched your search

@@ -138,7 +138,8 @@ class IndexController extends AbstractController
return $this->redirectToRoute('app_account');
}
return $this->redirect($returnUrl);
// Use htmxRedirect for cross-origin safety (returnUrl may be external)
return $this->htmxRedirect($request, $returnUrl);
}
return $this->render('booking/modal_cancel.html.twig');