Removed the (hidden) links in the article lists
authorAlexander Ebert <ebert@woltlab.com>
Sat, 6 Nov 2021 14:03:09 +0000 (15:03 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 6 Nov 2021 14:03:09 +0000 (15:03 +0100)
The links in the footer are inaccessible due to the title link which spans the entire element. They serve no real purpose anyway and can simply be left out, also improving keyboard navigation by skipping pointless links.

See https://community.woltlab.com/thread/292905-artikelauflistung-link-zu-benutzer-geht-nicht/

com.woltlab.wcf/templates/articleListItems.tpl

index fbdc522170f3a079e65fb85f2656c0fbf95d210b..da76424a928b75b8ae3bb48e7da2da39c0fd905c 100644 (file)
                        </div>
                        
                        <div class="contentItemMeta">
-                               <a href="{$article->getUserProfile()->getLink()}" class="contentItemMetaImage" aria-hidden="true" tabindex="-1">
+                               <span class="contentItemMetaImage">
                                        {@$article->getUserProfile()->getAvatar()->getImageTag(32)}
-                               </a>
+                               </span>
                                
                                <div class="contentItemMetaContent">
                                        <div class="contentItemMetaAuthor">
-                                               {user object=$article->getUserProfile()}
+                                               {@$article->getUserProfile()->getFormattedUsername()}
                                        </div>
                                        <div class="contentItemMetaTime">
                                                {@$article->time|time}