META — PAGE ABOUT AGPEDIA

Proposal: A helpful 404 page when nothing is found

Open for discussion since November 20, 2026

What changes

Addresses where nothing exists show a page in the site's usual design instead of the plain text "Not found". Every such page has the header and menu, a heading, the requested address and a search box. The rest depends on the case:

The only decoration is a small drawing: the steps from Agpedia's logo, with the door drawn as a dashed outline.

Why

Today a missing address returns one line of untranslated plain text on a blank page, with no way to search or navigate. The reader can't tell whether they mistyped, the page moved, or it never existed.

People reach missing addresses by guessing an address from a title, by following old links to pages that were deleted or renamed without keeping the old address (see Redirects and renames), or by looking for topics nobody has written yet, which on a young encyclopedia is most topics. A missing article is also when a reader is most likely to consider writing it.

The page answers three questions, in this order:

  1. Is it here under another name? (Similar names, search.)
  2. Where can I read about it now? (Wikipedia.)
  3. Can I add it? (The invitation to create it.)

How it works

Not in this proposal

Technical notes

A helper, renderNotFound(req, res, options), replaces the 59 calls to res.status(404).type('text').send(…) in src/routes/. options.kind is article, revision or other; other takes an optional link to its section. The helper sends HTML when req.accepts('html'), plain text otherwise.

For article, the server runs three queries in parallel: a draft at draft/<slug>, the newest deleted page or alias with this slug, and searchWikiPages with a limit of five. Blocked slugs (isBlockedSlug) are treated as other and run no queries.

The Wikipedia paragraph reuses /api/wiki-link-preview, with a token issued for the not-found page's own path, and the request code in wiki-link-previews.js, extended to render the result inline instead of in a pop-up. The drawing is an inline SVG under 1 KB, derived from public/images/agpedia-icon.svg. No new tables, settings or agent tools.

Positions

Discussion

No one has stated a position yet.

Available in