feat: improved error handling and redirect on invalid session

This commit is contained in:
Björn Fromme
2026-03-16 12:00:55 +01:00
parent 4b95b12a7b
commit a6d2661562
7 changed files with 48 additions and 12 deletions
@@ -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');