---
title: "The links nobody knew were there"
description: "When navigation is restructured, the links that break are the ones outside the working tree: old posts, emailed receipts, a PDF, someone else's article. Why link rot needs a continuous check."
url: https://harpywatch.com/blog/the-links-nobody-knew-were-there
kind: article
author: "The HarpyWatch team"
published: 2026-11-12T09:00:00+00:00
tags: ["AI Agents", "Monitoring", "SEO"]
publisher: "HarpyWatch"
---

# The links nobody knew were there

A coding agent is asked to tidy up the navigation. It does a good job: `/docs/getting-started`
becomes `/start`, the three orphaned pages under `/about` are folded into one,
the blog moves from `/blog/2024/some-post` to `/blog/some-post`. It updates the references it finds in the repository, the build passes, and the
new structure is better than what it replaced.

Then a customer clicks the link in a receipt you emailed them in March.

On a site of any age, nobody is holding the whole of it in their head — and the
references that break are the ones stored where a repository search cannot go.

## Where the invisible links live

A codebase search finds links in code. These are the ones it misses:

- **Old posts you wrote yourself.** A three-year-old article that links to
  `/pricing`, which is now `/plans`. It is your content, on your domain, and
  the link is dead.
- **Content stored as data.** Body copy in a database, a CMS field, a Markdown
  file in a content directory that the router does not know about. A rename in
  the router does not propagate into a row.
- **Emails already sent.** Receipts, password resets, onboarding sequences,
  every notification your product has ever delivered. Those URLs are frozen in
  other people's inboxes and you cannot edit them.
- **PDFs and generated documents.** An invoice, a whitepaper, a slide deck a
  salesperson emailed. Link checkers rarely look inside them.
- **Inbound links from other people.** The article that linked to your docs, the
  forum answer, the aggregator post — the most valuable links you have and the
  least controllable.
- **QR codes on physical things.** Packaging, a conference stand, a card.
  Unfixable by deploy.

The first two you can repair yourself. The rest need someone else to change
something — an author, a partner, a printer — which means the practical fix is to
keep the old path answering rather than to hunt for the references.

## Why generated sites rot faster

Link rot is old. What changes with generated sites is who decides to move a URL,
and how often that decision is even noticed.

A human restructuring navigation does it deliberately and remembers doing it. A
coding agent does it as a side effect of a task about something else, and the
rename is an improvement, so nobody vetoes it. What is missing is the memory: no
session knows which paths were published in an email eighteen months ago,
because that fact is not in the repository.

Three mechanisms make it worse specifically on generated sites:

**Moving a route costs one line; finding its references costs a project.**
Changing a path is an edit. Finding what pointed at it means grepping the
repository — which is easy — then writing a query per content table that might
hold body copy, then opening every email template your product sends, then
accepting that inbound links and printed material are beyond reach. Only the
first of those is a command you can type.

**Redirects accumulate rather than resolve.** The considerate fix for a rename
is a 301 from the old path. Do that four times over a year, each session unaware of the last, and
`/docs/getting-started` → `/getting-started` → `/start` → `/docs/start` is four
hops for a link that used to be one. Browsers follow
the whole chain, so nobody complains. Other clients are less forgiving: `curl`
returns the 3xx and stops unless you pass `-L`, HTTP libraries differ in whether
they follow by default, and every client that does follow has a hop limit it
will not exceed. The chain works right up to the client that does not play
along.

**Redirect rules conflict across layers.** One session adds a trailing-slash
normalisation in the application router; a later one adds an nginx `rewrite`, or
a CDN page rule, doing the opposite. Neither layer can see the other's rule.
Each is correct alone. Together they are a loop, and a checker that reports only the final status code
sees nothing unusual until it gives up.

## What it does to crawlers, and what it does to people

For a **person**, the timing is what does the damage: they were mid-task. They clicked a link in a receipt because they wanted an invoice, or a link in a
search result because they had a question. A dead link does not send them to
your homepage to look around. It sends them elsewhere.

For a **crawler**, the damage is quieter and lasts longer. A page that
disappears without a 301 does not pass anything on to its replacement: the
inbound links now point at a 404, and search engines have no way to associate
them with the new URL. A 301 is the mechanism that makes that association;
without it the new page starts from nothing. A chain that loops, or that exceeds
a client's hop limit, is simply an unreachable page. And because internal links
are how a crawler discovers pages at all, a navigation full of dead ends means
fewer of your pages get found — requests that would have fetched a real page are
spent on 404s instead.

## Why one crawl is not enough

A one-off link checker run after a big change answers a narrower question than
it appears to.

A single crawl tells you the site was internally consistent at one moment. That
does not survive the next deploy. It also misses everything that breaks without your code changing
at all: a third-party page you linked to that moved, a CDN asset whose URL was
rotated, an integration partner who redesigned.

Checking before a deploy helps — run the checks against a staging address before
DNS moves and you catch the restructure you are about to ship. It does not catch
the third-party URL that dies next Tuesday. None of this needs a product: `wget --spider -r` on a cron will crawl a site and
report 404s, and plenty of teams should do exactly that. Scheduled means
scheduled either way — you learn about a dead third-party link at the next run,
not the moment it dies. HarpyWatch runs `broken-links` on a schedule against a page
or set of pages, following the links it finds and reporting the ones that no
longer answer — including any that were fine last week. `redirect-chain` is the companion check, and the one that
is easy to leave out: it reports the full hop sequence rather than the final status, so a
301 to a 301 to a 302 shows as three hops rather than as a working link, and a
redirect that changes scheme or host on the way is visible instead of implied.

`sitemap-health` covers the sitemap that still advertises URLs the restructure
removed — a list of dead links you are handing to a crawler on purpose.

## The honest limits

An external checker sees the links it can reach. It cannot open the inbox of someone who received a receipt in
March, it does not know what is inside a PDF you never linked to, and it cannot
enumerate the pages on other people's sites that point at you. Nothing can.

What it can do is check that the *old paths still answer*. That is a partial
defence and worth naming as one: it does not find the links, it verifies the
promises you already know you made. If you know that `/docs/getting-started`
was published in emails, you can keep it as a monitored URL forever — one row,
one check — and find out the
day a restructure stops honouring it. That is not a crawl of your site. It is a
list of promises you made in public, checked from outside, on a schedule.

The site is generated. The promises are not.
