aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2025-12-15 16:46:48 +0100
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2025-12-15 16:46:48 +0100
commitecb8d1bd7861a74290329ae75da196a2a39b3f7b (patch)
tree2aead96de7b996b3ca060d4e58c99adc82c4f60b /app/controllers
parentb188e503693b158cc0192eed33535875d6cf132f (diff)
Revert "Klick auf das Ankündigungen-Symbol kann zur falschen Stelle führen", fixes #6115
Closes #6115 Merge request studip/studip!4649
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/institute/overview.php11
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;
}