aboutsummaryrefslogtreecommitdiff
path: root/lib/navigation/FooterNavigation.php
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
commit4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch)
tree5c07151ae61276d334e88f6309c30d439a85c12e /lib/navigation/FooterNavigation.php
parentda0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff)
parent97a188592c679890a25c37ab78463add76a52ff7 (diff)
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'lib/navigation/FooterNavigation.php')
-rw-r--r--lib/navigation/FooterNavigation.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/navigation/FooterNavigation.php b/lib/navigation/FooterNavigation.php
index 32a4182..4319c97 100644
--- a/lib/navigation/FooterNavigation.php
+++ b/lib/navigation/FooterNavigation.php
@@ -69,13 +69,20 @@ class FooterNavigation extends Navigation
&& User::findCurrent()
)
) {
+ $url = Request::url();
+
+ // Remove 'page' parameter if the page links to itself
+ if (str_contains($url, 'dispatch.php/accessibility/forms/report_barrier')) {
+ $url = URLHelper::getURL($url, ['page' => null], true);
+ }
+
$this->addSubNavigation(
'report_barrier',
new Navigation(
_('Barriere melden'),
URLHelper::getURL(
'dispatch.php/accessibility/forms/report_barrier',
- ['page' => Request::url(), 'cancel_login' => '1']
+ ['page' => $url, 'cancel_login' => '1']
)
)
);