From bd0aea779077427db3a71fdfb851eda37a1573ad Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Tue, 3 May 2022 17:18:02 +0000
Subject: [PATCH] fix url access when adding skiplinks to navigation, fixes
 #1006

Closes #1006

Merge request studip/studip!580
---
 templates/index_nobody.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/index_nobody.php b/templates/index_nobody.php
index 8652729fdf6..f5b91825ce3 100644
--- a/templates/index_nobody.php
+++ b/templates/index_nobody.php
@@ -31,8 +31,8 @@ if ($bg_mobile) {
             <? if ($nav->isVisible()) : ?>
                 <? list($name, $title) = explode(' - ', $nav->getTitle()) ?>
                 <div class="login_link">
-                    <? SkipLinks::addLink($name, $url) ?>
                     <? if (is_internal_url($url = $nav->getURL())) : ?>
+                        <? SkipLinks::addLink($name, $url) ?>
                         <a href="<?= URLHelper::getLink($url) ?>">
                     <? else : ?>
                         <a href="<?= htmlReady($url) ?>" target="_blank" rel="noopener noreferrer">
-- 
GitLab