From 8d6f309e23e57c9375aba874891d07f66538f261 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Thu, 10 Nov 2022 17:42:14 +0000 Subject: [PATCH] use Location redirect instead of `redirect()`, fixes #1772 Closes #1772 Merge request studip/studip!1149 --- app/controllers/institute/overview.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/institute/overview.php b/app/controllers/institute/overview.php index 99a59cabfab..f511bd47ef7 100644 --- a/app/controllers/institute/overview.php +++ b/app/controllers/institute/overview.php @@ -62,7 +62,8 @@ class Institute_OverviewController extends AuthenticatedController throw new Exception('Invalid redirection'); } - $this->redirect(URLHelper::getURL($redirect_to, ['cid' => $this->institute_id])); + $this->response->add_header('Location', URLHelper::getURL($redirect_to, ['cid' => $this->institute_id])); + $this->render_nothing(); return; } -- GitLab