Page MenuHomePhabricator

Lighthouse error "Links are not crawlable" for selflink links
Open, Needs TriagePublicBUG REPORT

Description

In MediaWiki, links to the very page that the user is on are rendered as <a class="mw-selflink selflink">Page_Title</a>.

This is problematic because the link element has neither a name attribute nor an href attribute. This way, search engines cannot crawl this link/non-link properly, which might be detrimental to the SEO ranking.

We suggest simply adding role="presentation" (a more elaborate synonym of role="none") to the link element to make it clear to the search engine crawlers and to Lighthouse that this is not a link but a functionless content "presentation."

This suggestion has already been tested and shown to work with Lighthouse and Pagespeed.