Problem/Motivation
When checking a page, with an AJAX webform, with Lighthouse, this will result in the following notice:
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
This error is because the element is an a-tag without a required href attribute.
Proposed resolution
Replace the a-tag with a span
Issue fork webform-3214340
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3214340-links-are-not-85
changes, plain diff MR !30
- 3214340-links-are-not
changes, plain diff MR !29
Comments
Comment #2
jeroentA similar issue: in core #2784311: "Skip to main content" should link to main tag or similar
Comment #4
jeroentComment #5
jrockowitz commentedThank you for the patch.
Maybe we should also remove the tabindex="-1" aria-hidden="true" from the tag.
Also, this issue should be addressed in 8.x-5.x. We might have to switch to using patches.
Comment #9
jrockowitz commented