Skip to content
Snippets Groups Projects
Commit d302967c authored by Michaela Brückner's avatar Michaela Brückner :unicorn: Committed by Ron Lucke
Browse files

fixes #3621

Closes #3621

Merge request studip/studip!2512
parent 47e3211a
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ class LoginNavigation extends Navigation ...@@ -31,7 +31,7 @@ class LoginNavigation extends Navigation
$navigation->setLinkAttributes([ $navigation->setLinkAttributes([
'id' => 'toggle-login' 'id' => 'toggle-login'
]); ]);
$navigation->setURL('#login-form'); $navigation->setURL('#toggle-login');
$this->addSubNavigation('standard_login', $navigation); $this->addSubNavigation('standard_login', $navigation);
$standard_login_active = true; $standard_login_active = true;
} }
......
...@@ -68,7 +68,7 @@ $show_hidden_login = false; ...@@ -68,7 +68,7 @@ $show_hidden_login = false;
<? $name_and_title = explode(' - ', $nav->getTitle()) ?> <? $name_and_title = explode(' - ', $nav->getTitle()) ?>
<li class="login_link"> <li class="login_link">
<? if (is_internal_url($url = $nav->getURL())) : ?> <? if (is_internal_url($url = $nav->getURL())) : ?>
<? SkipLinks::addLink($name_and_title[0], $url) ?> <? SkipLinks::addLink($name_and_title[0], URLHelper::getLink($url, ['cancel_login' => 1])) ?>
<a href="<?= URLHelper::getLink($url, ['cancel_login' => 1]) ?>" <?= arrayToHtmlAttributes($nav->getLinkAttributes()) ?>> <a href="<?= URLHelper::getLink($url, ['cancel_login' => 1]) ?>" <?= arrayToHtmlAttributes($nav->getLinkAttributes()) ?>>
<? else : ?> <? else : ?>
<a href="<?= htmlReady($url) ?>" target="_blank" rel="noopener noreferrer"> <a href="<?= htmlReady($url) ?>" target="_blank" rel="noopener noreferrer">
...@@ -83,7 +83,6 @@ $show_hidden_login = false; ...@@ -83,7 +83,6 @@ $show_hidden_login = false;
<? endforeach ?> <? endforeach ?>
</ul> </ul>
</nav> </nav>
<? if ($show_hidden_login) : ?> <? if ($show_hidden_login) : ?>
<?= $this->render_partial('_standard_loginform', [ <?= $this->render_partial('_standard_loginform', [
'hidden' => empty($loginerror), 'hidden' => empty($loginerror),
......
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