Context
Documentation 404s come from renamed pages and from links pasted years ago. A
bare "not found" wastes that visit; suggesting the closest existing page usually
recovers it.
Scope
- A 404 page that keeps the sidebar and search available.
- Suggest the closest matching pages from the requested path using string
distance over the page index, capped at a few suggestions and only when the
match is reasonable.
- Offer the search dialog prefilled with terms from the path.
- Link to the section index that the path implies, when one exists.
- Return a real 404 status, not a 200 with 404 content.
Acceptance criteria
Out of scope
- Server-side logging of 404s.
Spec: docs/dx_1/001_docs_site.md · Depends on: DX-048
Context
Documentation 404s come from renamed pages and from links pasted years ago. A
bare "not found" wastes that visit; suggesting the closest existing page usually
recovers it.
Scope
distance over the page index, capped at a few suggestions and only when the
match is reasonable.
Acceptance criteria
Out of scope
Spec:
docs/dx_1/001_docs_site.md· Depends on: DX-048