Links · Link targets

Link with an empty href

A link on this page has an empty href, which simply reloads the current page and does nothing useful for visitors.

How this page is built

The link below has href="". An empty href points to the current page, so clicking it just reloads this page.

Find out more on this topic.

Why it matters

An empty href resolves to the page it is on. Clicking it reloads the page, which confuses visitors, and crawlers record a pointless link from the page to itself.

Empty hrefs are usually placeholders that were never filled in, or the result of a template field that had no value.

How to check it

Search the source or a crawl export for href=“” with nothing between the quotes. Crawl tools report empty hrefs and self-referencing links. Check templates for link fields that can be left empty.

How to fix it

Add the correct destination to the link, or remove the link if it has no destination. If an element only triggers a script, use a button instead of a link.

Back to all tests