feat: improved error handling and redirect on invalid session

This commit is contained in:
Björn Fromme committed 2026-03-16 12:00:55 +01:00
1 parent 4b95b12a7b
commit a6d2661562
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');