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
$navigation->setLinkAttributes([
'id' => 'toggle-login'
]);
$navigation->setURL('#login-form');
$navigation->setURL('#toggle-login');
$this->addSubNavigation('standard_login', $navigation);
$standard_login_active = true;
}
......
......@@ -68,7 +68,7 @@ $show_hidden_login = false;
<? $name_and_title = explode(' - ', $nav->getTitle()) ?>
<li class="login_link">
<? 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()) ?>>
<? else : ?>
<a href="<?= htmlReady($url) ?>" target="_blank" rel="noopener noreferrer">
......@@ -83,7 +83,6 @@ $show_hidden_login = false;
<? endforeach ?>
</ul>
</nav>
<? if ($show_hidden_login) : ?>
<?= $this->render_partial('_standard_loginform', [
'hidden' => empty($loginerror),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment