Link crawlers can't follow

seo/crawlable-linkwarningseolighthouse

Why it matters

An <a> with a javascript: href, or one that navigates in onClick with no real href, has no URL for crawlers (Lighthouse: links are not crawlable).

Fix

Put the destination in href (use <Link href>), or use a <button> for actions.

Credit

  • From Google Search Central

    Google follows only anchors with a resolvable href; javascript: links and click handlers are not crawlable.

References

See it