links.missing-fragment

InfoSEO audit

Same-page links (href="#name") point to an id that no element on the page has, so the link goes nowhere.

What to change

Give the target element the id the link names, or fix the link. If JavaScript handles the click (a menu or modal toggle), use a <button> instead of <a href="#...">.

A finding of this rule on a page carries the exact edits for that page: the markup it quotes, and what to write instead.

When it runs

Runs on every SEO audit: of a page, a crawl, a build directory or HTML. Info is a best practice: worth doing, rarely urgent, and --no-info leaves it out. Each finding takes 1 point off the page's score.

The severity here is the rule's usual one: a finding can be raised or lowered when the page gives a reason.

Run it, or skip it

Check a page for this rule alone, after a fix for instance:

npx @rivi-software/agentic-seo-check audit https://example.com --rule links.missing-fragment

Or from an assistant, with the MCP tool seo_audit_page:

{
  "url": "https://example.com",
  "rules": [
    "links.missing-fragment"
  ]
}

To leave it out of an audit, pass --disable links.missing-fragment on the command, or disableRules: ["links.missing-fragment"] to a tool.

All 13 rules