Skip to content

Make sure 404 pages work#1148

Merged
gantoreno merged 1 commit into
masterfrom
gro-461-make-sure-404-pages-work
May 25, 2026
Merged

Make sure 404 pages work#1148
gantoreno merged 1 commit into
masterfrom
gro-461-make-sure-404-pages-work

Conversation

@gantoreno
Copy link
Copy Markdown
Contributor

Fixes GRO-461

The behavior we want for 404 pages is to keep whatever the accessed URL is intact (e.g. /docs/asd) while rendering the contents of 404.html

The current Amplify rewrite configuration achieves this partially, but since the target is /404.html, this ends up landing in the main website's 404.html, which is also part of a rewrite. We don't want to stack rewrites over rewrites cross-deployments, this gets into messy behavior territory.

This PR moves 404.html to be under /docs/404.html, so that docs 404 rewrites over the docs-owned 404.html.

@gantoreno gantoreno requested a review from alexyarosh May 25, 2026 16:23
@gantoreno gantoreno merged commit 40e7913 into master May 25, 2026
1 check passed
@gantoreno gantoreno deleted the gro-461-make-sure-404-pages-work branch May 25, 2026 16:32
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.

2 participants