Link crawlers can't follow
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
Google follows only anchors with a resolvable href; javascript: links and click handlers are not crawlable.
References
- SEO Link Best Practices for GoogleGoogle Search Central
- <a> HTML anchor elementMDN Web Docs
- Link ComponentNext.js