Skip to content

console: show the not found page for an unknown document - #6

Merged
rinjanianalytics merged 1 commit into
mainfrom
console-docs-not-found
Oct 11, 2026
Merged

rinjanianalytics merged 1 commit into
mainfrom
console-docs-not-found

Conversation

@rinjanianalytics

Copy link
Copy Markdown
Owner

An address like /docs/unknown is served by the documentation page, not by the not found page. It showed an empty table of contents and a red box with no way out.

  • When the server answers 404 for a document, the documentation page shows the same view as the not found page: "This document does not exist", with links to the home page and to the documentation.
  • The title of the tab says "Not found".
  • Other errors keep the red box.
  • The view is one component, shared by both pages.

Checks

  • pnpm lint, pnpm test and pnpm build pass. The built 404.html still has its title and its text.
  • In a browser, with the development server and the data of the demo: opened /docs/0, followed "Open the documentation" (the introduction opens), went back (the view returns), followed "Back to home".

Not checked

  • An error other than 404 from the documentation endpoint.

An address like /docs/unknown is served by the documentation page, not
by the not found page. It showed an empty table of contents and a red
box, "Unable to fetch documentation page! Document not found.", with
no way out.

When the server answers 404 for a document, the documentation page now
shows the same view as the not found page: what happened, and links to
the home page and to the documentation. The title of the tab says "Not
found". Other errors keep the red box.

The view moves to its own component, shared by both pages.
@rinjanianalytics
rinjanianalytics merged commit 7583591 into main Oct 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant