This error appears when there are links with an empty or invalid href attribute that doesn't point to any real destination. Here's what it means and how to fix it.
Google follows links to crawl and index your site's content. A link with an empty or invalid href doesn't lead to any page, so it provides no SEO value and doesn't contribute to distributing authority across your pages.
A user who clicks a link that doesn't work loses trust in your site. They don't know whether it's an error or whether the content doesn't exist, and that creates frustration and may cause them to leave early.
For Google, having links with empty or invalid hrefs in production signals that the code wasn't reviewed before publishing. These kinds of technical oversights form part of the overall assessment of your site's quality.
If this error showed up in your audit, here are the steps to leave it behind.
Ruk Audit shows you exactly which links have this problem and what the visible text of each one is. Review them before editing anything and prioritize those on the most important pages.
Before fixing, understand what that link was intended to do. Should it point to a specific page? Was it a navigation element pending completion? Or is it an interactive element that doesn't need to point to any URL?
If the link should point to a page, replace the href with the correct URL. If the element is interactive and doesn't need to navigate anywhere, replace the link tag with a button. If it's the parent element of a dropdown menu that only serves to expand options, keep the link but add role="button" to correctly indicate its function to screen readers.
Once the changes are made, check that all links have a valid href or have been replaced with the correct element. Pay special attention to navigation menus and interactive elements.
Audit your website for free and discover if this and other SEO errors are affecting your ranking.