Skip to content
Snippets Groups Projects
Commit ed31fb68 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #4115

Closes #4115

Merge request studip/studip!2959
parent b54b4970
No related branches found
No related tags found
No related merge requests found
...@@ -69,13 +69,20 @@ class FooterNavigation extends Navigation ...@@ -69,13 +69,20 @@ class FooterNavigation extends Navigation
&& User::findCurrent() && 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( $this->addSubNavigation(
'report_barrier', 'report_barrier',
new Navigation( new Navigation(
_('Barriere melden'), _('Barriere melden'),
URLHelper::getURL( URLHelper::getURL(
'dispatch.php/accessibility/forms/report_barrier', 'dispatch.php/accessibility/forms/report_barrier',
['page' => Request::url(), 'cancel_login' => '1'] ['page' => $url, 'cancel_login' => '1']
) )
) )
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment