Lighthouse SEO: Uncrawlable Link a#main-content

Created on 5 July 2021, over 3 years ago
Updated 28 August 2023, over 1 year ago

Lighthouse SEO

Crawling and IndexingTo appear in search results, crawlers need access to your app.

Links are not crawlable

Search engines may use `href` attributes on links to crawl websites. Ensure that the `href` attribute of anchor elements links to an appropriate destination, so more pages of the site can be discovered. Learn More

Uncrawlable Link

a#main-content

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Markup 

Last updated about 1 month ago

No maintainer
Created by

🇨🇿Czech Republic hop

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

  • Needs accessibility review

    Used to alert the accessibility topic maintainer(s) that an issue significantly affects (or has the potential to affect) the accessibility of Drupal, and their signoff is needed (see the governance policy draft for more information). Useful links: Drupal's accessibility standards, the Drupal Core accessibility gate.

  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States smustgrave

    Posted to the #accessibility channel to see if they can take a look

    But if we are changing all the theme templates won't we need a change record if any thing base themed off one of these?

  • Hi, Lighthouse complains that links are not crawlable in our new site on D9.5.7 that doesn't show up in Google search so far. It specifies
    "Uncrawlable Link", and

      div#main-wrapper > div#main > div.main-content > a#main-content
    <a id="main-content" tabindex="-1">

    I am a bit lost as to which patches have been applied in 9.5.7, if any, and what workaround could currently actually be applied with the least damage resulting elsewhere. Or is an upgrade to D10 the best solution?

  • 🇮🇳India pradipmodh13 Ahmedabad

    Hello Folks,
    In Drupal 10.1.x-dev anchor tag comes with href attribute. So no need to work.
    For ref attached screenshot.

  • 🇮🇳India pradipmodh13 Ahmedabad

    Hello Folks,
    In Drupal 10.1.x-dev anchor tag comes with href attribute. So no need to work.
    For ref attached screenshot. So we can move this bug to needs review.

  • Status changed to Needs review over 1 year ago
  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    Build Successful
  • 🇮🇳India pradipmodh13 Ahmedabad

    After looking further, it was discovered that the anchor tag's href property was missing, thus href was added in accordance with usual practise.
    After applying the fix, I verified that the lighthouse reports were error-free.
    Please review

  • Status changed to Needs work over 1 year ago
  • 🇬🇧United Kingdom longwave UK

    #47 is wrong, now the anchor is a link to itself.

    I still think the simplest solution is to put the ID directly on the <main> element.

  • Status changed to Needs review over 1 year ago
  • last update over 1 year ago
    Build Successful
  • 🇮🇳India gauravvvv Delhi, India

    Addressed feedback from #48, Attached interdiff with 47, please review

  • 🇺🇸United States dpagini

    I came across this other core issue regarding these same links, and I think a solution should probably consider both of these issues...?

  • Status changed to Needs work over 1 year ago
  • 🇺🇸United States smustgrave

    Seems latest change caused failures.

  • 🇺🇸United States dpagini

    What do you mean by that, @smustgrave?

  • 🇺🇸United States smustgrave

    #50 didn't fully pass. Caused some nightwatch errors I believe.

Production build 0.71.5 2024