diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2025-12-15 14:01:35 +0100 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2025-12-15 14:03:50 +0100 |
| commit | 8b50548b59b9580ab106ef7bfd5cb20b688ff7ea (patch) | |
| tree | e0fe2558e3cc6f6a6e012fd9e070befd0ee55dea | |
| parent | b188e503693b158cc0192eed33535875d6cf132f (diff) | |
Revert "Klick auf das Ankündigungen-Symbol kann zur falschen Stelle führen", fixes #6115biest-6115
revert part of commit a02371a023bc06bab62d774a3a38fd242aed0f99.
| -rw-r--r-- | app/controllers/institute/overview.php | 11 |
1 files 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; } |
