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
&& 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']
)
)
);
......
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