-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A documentation-specific 404 page is needed #1976
Comments
I wonder if it would be possible to have the documentation-specific 404 page just be the documentation index page itself? You could trigger some specific error message within the page by passing a parameter as part of the URL. (Since I would expect a suitable documentation-specific 404 page to be basically just the top-level index page, with the addition of a 'not found' error). |
We've now added some category level redirects (see #2010) which should catch most 404'ed pages. But a custom 404 page for the documentation is still needed I think. |
@jackbenwillis Can you have a think about what this should look like? |
The new 404 page should presumably direct people to the new documentation site, maybe let people search for things, and encourage them to update their dead links. Not entirely sure that helps! 😆 |
That'd work for me. Hopefully it'd be possible to configure it so that the landing page in the 404 isn't static or separately generated (and have to be updated independently from the main top page)...? @nelliemckesson @mudge ? |
@nelliemckesson can confirm but I expect we can generate a separate 404 page much like we do the current index page, dynamically populating it with the same categories and even including the search functionality. I can then configure our web server to use that page whenever it encounters a 404 error rather than taking users to https://www.raspberrypi.org/404.html |
Let's do it this way then. |
@mudge I think we'd want to keep the existing generic https://www.raspberrypi.org/404.html page, and only use this new design for 404s coming from the https://www.raspberrypi.org/documentation/ "subdirectory"? Is it possible to do that? |
I was presuming that's what he meant? |
Yes, that's what I meant. We won't touch https://www.raspberrypi.org/404.html as that is used by other parts of the site but instead configure the documentation server specifically to use our new documentation-only 404 page. |
Ah, sorry for getting my wires crossed 😆 |
Could we increase the size of the '404'? Otherwise looks good! |
I dunno how to change font-sizes, that's a CSS thing 😆 So I'll put together a PR with what I've got and @nelliemckesson can bump the font-sizes later 👍 |
@nelliemckesson I tried making "Raspberry Pi Documentation" into a link, but it didn't look right, so I won't do that for now 😉 |
Eek. No, that's not right. 😬 |
See #2026 |
Yup! leave it out for now ;) small thing, full stop after for and uppercase P in please (all my fault)! "We couldn't find what you were looking for. Please browse our updated Raspberry Pi Documentation." |
and a full stop! |
@nelliemckesson If you could look at #2026 and sprinkle some CSS magic that'd be great! Thanks! |
Add tooling to create a 404 page. Partially fixes #1976
I think the best solution to #1973 is that the documentation site has its own 404 page which is more helpful; perhaps having the top-level categories? This will help redirect lost users back into the main documentation rather than just stranding them with a generic "404" message.
Any ideas what should be on this page @jackbenwillis, @mudge ?
The text was updated successfully, but these errors were encountered: