Skip to content
All articles

Why Old Articles End Up Linking to Nothing

5 min read

At 37 pieces of writing on this site I counted the links inside the articles themselves — not the navigation, not the automatic "related" block, just the places where one piece mentions another in a sentence. There were 19. Twenty-two pieces were never linked to from any other. Twenty-four linked to nothing.

Nothing was broken. All 776 internal links on the site resolved. The problem was what was missing, and the reason it was missing turned out to be structural.

Why it happens: links only point backwards

When you write a new piece, you know what already exists, so you link to it. You cannot link to what you have not written yet. And once a piece is published, nobody goes back to add a link to the newer article that now covers the thing it mentions in passing.

Do that for a year and the shape is predictable. The oldest articles were written when there was nothing to point at, so they point at nothing. The newest are invisible to everything written before them. Each piece was linked as well as it could be at the moment it was written, and the collection as a whole ended up badly connected.

The pair that made it visible: two articles on either side of the same API boundary, one about consuming an untyped API and one about putting a typed service in front of it. The newer one linked to the older. The older one had no idea the newer existed — so from the older side, they looked like two articles competing for the same topic rather than a matched pair.

Measure it

The check is small. For each article source file, collect the in-body links that point at other articles, then count, for every article, how many others link to it:

const inbound = new Map(pieces.map((p) => [p.path, 0]))
for (const p of pieces) {
  for (const href of p.outboundLinks) {
    if (inbound.has(href)) inbound.set(href, inbound.get(href) + 1)
  }
}
const orphans = pieces.filter((p) => inbound.get(p.path) === 0)

Count links in the prose only. A navigation bar or an automatic related-posts list links to everything, which tells you nothing about whether the writing itself connects.

Fix it without inventing links

The tempting fix is a "see also" line at the bottom of every article. It raises the numbers and helps nobody, because a reader who reaches the end of a piece has already decided whether they want more.

The useful links were already half-written. Reading the orphaned and dead-end pieces looking for places where the text already gestured at another article turned up ten of them:

  • A face recognition article that said "the attendance system I worked on separately", with an article about exactly that system sitting unlinked.
  • A payments article saying "the webhook is the record", next to an unlinked article on receiving webhooks reliably.
  • A WooCommerce performance piece that explained order storage migration in a paragraph, while a full article on that migration existed.
  • A meditation post that mentioned "sixteen steps" without linking the post about the sixteen steps.

Each became a link on words already in the sentence. Afterwards: 31 in-body links instead of 19, and 11 orphaned pieces instead of 22.

Stop before it gets forced

Eleven orphans remain on purpose. For those, there was no sentence that genuinely pointed elsewhere, and a link added to raise a count reads like one. They are still reachable through the index, tags and related posts.

The part worth keeping is the habit, not the audit. When you publish something new, spend five minutes searching the older pieces for the phrases that describe it, and link from them. That is the only step in the process that ever adds links pointing forward, and without it, every collection drifts the same way this one did.