bug: Documentation doesn't have proper 404 page #2624
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Continuwuity/Web Interface
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity#2624
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is the bug?
Going to a non-existent path on the documentation page currently gives a firefox-default 404 page (or whatever browser you're using) instead of going to /404.html (or showing the same as is shown there)
Steps to reproduce
go to https://continuwuity.org/thisdoesntexist
Server name and version
irrelevant
Additional context
No response
If this goes on the VPS, it depends on Caddy and is as simple as adding a
handle_errorsprobably.If this is on grebedoc, you'd probably need to edit its
_redirectsfile.Grebedoc handles it perfectly (see example: https://silversys.dev/thisdoesnotexist), so this is likely the VPS.
we can probably change the DNS entry over from the VPS to grebedoc around now, seeing as we deploy main to it (https://forgejo.ellis.link/continuwuation/continuwuity/actions/runs/28457/jobs/0/attempt/1#jobstep-8-167)
Secondary confirmation that not only Grebedoc, but our specific SSG (Rspress) can handle it perfectly: https://preview.continuwuity.org/@2621/doesntexist
I agree, it’s time to push the Grebedoc button in prod :3
Looks like the prod DNS entry has been changed:
After either waiting for your upstream DNS to receive the new info or changing your local hosts file, you should now find that a URL like https://continuwuity.org/thisdoesntexist leads you to the site's built-in 404 page.
Changed it a bit before making the release
Still seems to be mild issues: https://forgejo.ellis.link/continuwuation/continuwuity/actions/runs/28589/jobs/0/attempt/1 but we're nearly there
@Jade wrote in #2624 (comment):
That's an artifact of the preview step not having fleshed-out conditionals; the preview step is failing on the tagged release. The production step, however, was successful on the
mainrun.I'll open a PR shortly to refine the conditional used for the preview step, so that it doesn't try to run on release tags.