Add docs-specific 404 page with search form#2578
Open
elemasamuel wants to merge 2 commits intodjango:mainfrom
Open
Add docs-specific 404 page with search form#2578elemasamuel wants to merge 2 commits intodjango:mainfrom
elemasamuel wants to merge 2 commits intodjango:mainfrom
Conversation
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. |
Member
|
Thanks for giving this a try. Can you share a screenshot? |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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.