Skip to content

fix: lowercase jurisdiction slugs so mixed-case filenames stop 404ing - #43

Open
mzf11125 wants to merge 3 commits into
ethsystems:mainfrom
mzf11125:fix/jurisdiction-mixed-case-slugs
Open

fix: lowercase jurisdiction slugs so mixed-case filenames stop 404ing#43
mzf11125 wants to merge 3 commits into
ethsystems:mainfrom
mzf11125:fix/jurisdiction-mixed-case-slugs

Conversation

@mzf11125

@mzf11125 mzf11125 commented Sep 4, 2026

Copy link
Copy Markdown

Summary

  • Astro glob ids lowercase map filenames (id-OJK.md is served at /jurisdictions/id-ojk/), but markdown rewrite, related links, FAQ, and the graph panel kept the original case, so those hops 404ed.
  • Generated routes now use toContentSlug(), and mixed-case inbound URLs redirect to the lowercase pages.

Test plan

  • /jurisdictions/id-ojk/, /jurisdictions/sg-mas/, /jurisdictions/eu-eudr/ still load
  • /jurisdictions/id-OJK/, /jurisdictions/sg-MAS/, /jurisdictions/eu-EUDR/, /jurisdictions/eu-MiCA/, /jurisdictions/us-SEC/, /jurisdictions/de-eWpG/ redirect to the lowercase pages
  • See also on OJK and MAS lands on a live page
  • FAQ MiCA link lands on /jurisdictions/eu-mica/

Made with Cursor

Astro glob ids are lowercase while map filenames keep original case, so See also links to id-OJK and eu-MiCA missed the live pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
mzf11125 and others added 2 commits September 4, 2026 22:13
Deploy site on ethsystems/web waits for maintainer approval of fork PRs. This job runs test, content refs, and production build on any push so the fork can produce a check.

Co-authored-by: Cursor <cursoragent@cursor.com>
Vitest imports render.ts which needs the generated graph file. Local builds already had it. The runner does not.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mzf11125

mzf11125 commented Sep 4, 2026

Copy link
Copy Markdown
Author

Fork Actions is now running. GitHub had not indexed workflows on mzf11125/web until a workflow file landed on this branch.

Green CI run on the fork:
https://github.com/mzf11125/web/actions/runs/33882560402

That job ran npm test, content refs, and npm run build.

The upstream Deploy site run is still waiting on maintainer approval:
https://github.com/ethsystems/web/actions/runs/33881131168

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.

1 participant