Added rel attribute for external links in menus
authorMarcel Werk <burntime@woltlab.com>
Thu, 6 Aug 2020 21:24:22 +0000 (23:24 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 6 Aug 2020 21:24:22 +0000 (23:24 +0200)
com.woltlab.wcf/templates/__menu.tpl

index fcc255f6b04d71d9f7b2663f36ec34f2c1124671..aec0b7c40636e01ab42e8af0170c6e67a03b6eff 100644 (file)
@@ -4,7 +4,7 @@
                
                {foreach from=$menuItemNodeList item=menuItemNode}
                        <li class="{if $menuItemNode->isActiveNode()}active{/if}{if $menuItemNode->hasChildren()} boxMenuHasChildren{/if}" data-identifier="{@$menuItemNode->identifier}">
-                               <a href="{$menuItemNode->getURL()}" class="boxMenuLink"{if $menuItemNode->isExternalLink()}{if EXTERNAL_LINK_TARGET_BLANK} target="_blank"{/if}{/if}{if $menuItemNode->isActiveNode()} aria-current="page"{/if}>
+                               <a href="{$menuItemNode->getURL()}" class="boxMenuLink"{anchorAttributes url=$menuItemNode->getURL() appendClassname=false}{if $menuItemNode->isActiveNode()} aria-current="page"{/if}>
                                        <span class="boxMenuLinkTitle">{$menuItemNode->getTitle()}</span>
                                        {if $menuItemNode->getOutstandingItems() > 0}
                                                <span class="boxMenuLinkOutstandingItems badge badgeUpdate" aria-label="{lang}wcf.page.menu.outstandingItems{/lang}">{#$menuItemNode->getOutstandingItems()}</span>