From 8b50548b59b9580ab106ef7bfd5cb20b688ff7ea Mon Sep 17 00:00:00 2001 From: Elmar Ludwig Date: Mon, 15 Dec 2025 14:01:35 +0100 Subject: =?UTF-8?q?Revert=20"Klick=20auf=20das=20Ank=C3=BCndigungen-Symbol?= =?UTF-8?q?=20kann=20zur=20falschen=20Stelle=20f=C3=BChren",=20fixes=20#61?= =?UTF-8?q?15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit revert part of commit a02371a023bc06bab62d774a3a38fd242aed0f99. --- app/controllers/institute/overview.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/controllers/institute/overview.php b/app/controllers/institute/overview.php index 603e632..db83115 100644 --- a/app/controllers/institute/overview.php +++ b/app/controllers/institute/overview.php @@ -60,18 +60,13 @@ class Institute_OverviewController extends AuthenticatedController { //gibt es eine Anweisung zur Umleitung? $redirect_to = Request::get('redirect_to'); - if ( - $redirect_to - && !( - str_starts_with($redirect_to, '#') - || str_starts_with($redirect_to, '?') - ) - ) { + if ($redirect_to) { if (!is_internal_url($redirect_to)) { 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; } -- cgit v1.0