Cycle 13, batch 3: real 404 page and build tag, permanent URLs (retire /prototype/) #55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cycle13-batch3"
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?
Two stories, one commit each: 24.6 and 24.7.
▎
▎ - 24.6: A missing URL now shows the site's own 404 page instead of the homepage with a 200. nginx redirects are relative, so they stay on https behind Coolify's TLS proxy (one hop, not a detour through http). Every page's <head> carries . The commit comes from a Docker build argument that Coolify passes only if "Include Source Commit in Build" is on. Until Day turns that on, the tag reads unknown
The Navigator, Matrix, tool and domain pages move from /prototype/... to /navigator/, /matrix/, /protocols/{id}/ and /domains/{slug}/ in all three locales (git mv: history kept); the QA fixture moves to /qa/definition-popover/ (noindex, not in the sitemap); the three duplicate plain Navigator pages and the unused config.ts are deleted. Every link in src/ and public/ (menu, home button, islands, the MA and Entity Placement scripts, research markdown, topology helpers, the domain breadcrumb data) and about 236 test references use the new URLs; the menu's active-state check matches path boundaries. nginx sends each old URL, in every locale and with or without the trailing slash, ONE 301 to the new URL with the query string kept (the lowercase /en/ and /pt-br/ forms take two steps); any other /prototype/ URL is a 404. scripts/check-redirects.mjs checks all of it against a running site (58 checks; run it on the PR preview and on production); tests/permanent-urls.spec.ts covers the build. Also in this commit because it edits the same files: the 24.6 nginx changes (relative redirects, missing pages and index-less directories answer the site 404 page, a missing file under /api/ is a small JSON 404 with the CORS header, /404.html only as the error page), the Nav language-switcher flag, the README section, and the 24.6 URL-helper changes to the existing specs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>