NeovaPiattaforma SEO avanzata

L'href del link è malformato

In Neova Funziona con la scansione stessa: niente da configurare.

Regola rivista il 17 ottobre 2026 · Guida aggiornata il 7 luglio 2026

Uno schema scritto male o un URL che non si riesce ad analizzare non dà a crawler e visitatori una destinazione valida, quindi il link non funziona.

Cosa potresti fare

Correggi l'href con un URL completo e valido, per esempio https://example.com/path.

Perché Neova lo segnala

  • Uno schema scritto male come htp: o un URL non interpretabile non dà a browser e crawler alcuna destinazione valida.
  • I browser spesso lo trattano come un percorso relativo, quindi il link porta a un 404 sul tuo stesso sito.
  • Di solito nasce da un refuso quando un link è stato incollato in un editor.

Fonti

La guida completa

Per ora questa parte è in inglese.

This check fires when a page contains anchor tags whose href value is syntactically broken: stray spaces, unescaped characters, doubled protocols, or template placeholders that never got filled in. A malformed href either sends users to a 404, does nothing at all, or resolves to a URL you never intended, and crawlers waste budget chasing the mess. Broken links leak trust and bury real destinations.

What a Malformed href Looks Like

The href attribute is meant to hold a valid URL or a well-formed relative path. It breaks in predictable ways: a leading or trailing space, a space inside the path that should have been %20, two protocols glued together, a raw template variable that the CMS forgot to render, or an href that's just empty. Browsers try to be forgiving and will sometimes resolve a garbage href against the current page, which is how you end up with links to yoursite.com/https://othersite.com. Crawlers are less forgiving and will log the malformed target as a broken link.

These almost always come from templating, not hand-authored HTML. A CMS field left blank, a string-concatenation bug, or a copy-paste from a rich-text editor that smuggled in a non-breaking space are the classic sources.

A Real Failing Example

Here are the most common malformed hrefs a crawler surfaces, each broken in a different way:

<!-- leading space: resolves to yoursite.com/%20https://... -->
<a href=" https://example.com/guide">Read the guide</a>

<!-- unescaped space in path -->
<a href="https://example.com/case studies/retail/">Retail case study</a>

<!-- doubled protocol from bad concatenation -->
<a href="https://https://example.com/pricing">Pricing</a>

<!-- unrendered template placeholder -->
<a href="{{ post.permalink }}">Full article</a>

<!-- empty href: reloads current page -->
<a href="">Contact us</a>

Every one of those either dead-ends the user or points somewhere you didn't intend. The fixes are mechanical once you know the pattern:

<a href="https://example.com/guide">Read the guide</a>
<a href="https://example.com/case-studies/retail/">Retail case study</a>
<a href="https://example.com/pricing">Pricing</a>
<a href="https://example.com/blog/full-article/">Full article</a>
<a href="https://example.com/contact/">Contact us</a>

Trim whitespace, encode or replace spaces, collapse the protocol, render the variable, and never ship an empty href.

Malformation Types and What They Do

Malformation Example What Actually Happens
Leading/trailing space href=" /page/" Resolves against wrong base or 404s
Unescaped space in path href="https://example.com/a b/" Truncated or broken URL
Doubled protocol https://https:// Invalid host, hard 404
Unrendered placeholder {{ url }} Link points to literal text
Empty href href="" Reloads current page
Missing scheme on absolute href="example.com" Treated as relative path

That last one is sneaky: href="example.com" with no slash and no scheme is read as a relative filename, so it resolves to yoursite.com/current-path/example.com.

How to Detect It

  1. Screaming Frog: after a crawl, check the Response Codes tab and filter for Client Error (4xx), then use Bulk Export > Response Codes > Client Error 4xx Inlinks to see the exact anchor and source page. Malformed hrefs usually surface here as odd, doubled, or space-containing URLs.
  2. Custom extraction: configure a regex extraction on href values to flag any containing a space, {{, or https://https. This catches malformations that resolve to a 200 by accident but still point somewhere wrong.
  3. View source, not rendered DOM: browsers auto-correct many malformed hrefs, so inspect the raw HTML. Right-click, View Source, and search for href=" followed by a space or a curly brace.
  4. Google Search Console: the Pages report will list unexpected URLs under Not found (404); malformed hrefs frequently create phantom URLs that show up here as crawled-but-broken.

How to Fix It

Fix the source, not the symptom. If the broken hrefs come from a template, patch the template so every link is trimmed and properly encoded before output, and make sure placeholder variables always resolve or fall back gracefully. For content authored in a rich-text editor, do a find-and-replace pass for non-breaking spaces and stray protocols. Then re-crawl and confirm the malformed URLs no longer appear in your 4xx export. For links that were pointing to real pages, restore the correct target; for ones that should never have existed, remove the anchor entirely rather than leaving an empty href.

Malformed hrefs often travel with other link problems. Our checks for broken external links and redirected external links catch the downstream symptoms, and the internal linking guide covers how to keep your link graph clean.

FAQ

Browsers aggressively repair malformed hrefs, which masks the problem. Crawlers and other user agents may not repair them the same way, and the "fixed" URL a browser lands on is often not the one you intended. Trust the raw HTML and the crawler, not the browser's forgiveness.

Does an Empty href Hurt SEO?

An empty href="" reloads the current page and passes no link value anywhere. It's not a penalty, but it's a wasted anchor and a confusing user experience. Either give it a real destination or convert it to a button if it triggers JavaScript.

No. A fragment identifier pointing to an id on the same page is valid and useful for on-page navigation. It only becomes a problem if the target id doesn't exist, in which case the link does nothing.

Why Do Doubled Protocols Keep Appearing?

Almost always a concatenation bug where code prepends https:// to a URL that already includes it. Fix the logic to check for an existing scheme before adding one, and the whole class of errors disappears at once.

Should I Disavow or Redirect Malformed URLs?

Neither. Disavow is for toxic backlinks, not your own broken links. Just correct the href at the source. If a malformed href created a phantom indexed URL, let it 404 or 410 and it will drop out of the index naturally.

Trovalo sul tuo sito

Neova esegue questo controllo e tutti gli altri a ogni scansione, poi scrive la correzione come ticket per il tuo team.

  • App desktop per Mac, Windows e Linux
  • Tutti i 696 controlli, ognuno con la sua fonte
  • Search Console e Analytics 4, collegati in sola lettura
  • Ticket verso Jira, Linear e Asana

Scarica Neova Piano Desktop Free, oppure Solo gratis per 14 giorni, senza carta.

Tutti i controlli della categoria Link · Guide · Libreria dei controlli

Scritto da Neova Labs · Torna alla Libreria dei controlli