Skip to content

Add docs-specific 404 page with search form#2578

Open
elemasamuel wants to merge 2 commits intodjango:mainfrom
elemasamuel:fix/improve-404-page
Open

Add docs-specific 404 page with search form#2578
elemasamuel wants to merge 2 commits intodjango:mainfrom
elemasamuel:fix/improve-404-page

Conversation

@elemasamuel
Copy link
Copy Markdown

Closes #1347

The 404 page currently shows a generic error message with no way to find
what the user was looking for. This is especially frustrating on the docs
subdomain where users often land via broken or outdated links.

This PR adds a docs-specific 404 template at docs/templates/docs/404.html
that includes the existing search form, so users can immediately search for
the content they need without leaving the page.

@elemasamuel
Copy link
Copy Markdown
Author

Hi @adamchainz @pauloxnet , could you please take a look at this PR when you get a chance? It adds a docs-specific 404 template with the search form as discussed in #1347. Happy to make any changes needed.
Thanks! 🙏

@adamchainz
Copy link
Copy Markdown
Member

adamchainz commented Apr 5, 2026

Thanks for giving this a try. Can you share a screenshot?

@elemasamuel
Copy link
Copy Markdown
Author

Hi! Here's a screenshot of the docs-specific 404 page in action:

image

Let me know if you'd like any changes!

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.

Improve 404 page

2 participants