Skip to content

Conversation

@jderochervlk
Copy link
Collaborator

@jderochervlk jderochervlk commented Jan 31, 2026

From what I can tell Cloudflare pages require urls to end with a trailing slash.

https://community.cloudflare.com/t/removing-trailing-slash-on-static-websites/583429
https://developers.cloudflare.com/pages/configuration/serving-pages/#route-matching
https://developers.cloudflare.com/rules/page-rules/reference/additional-reference/#zone-name-occurrences-must-end-with-a-slash

This means that absolute url links need to have a trailing slash or they get redirected.
This does not apply to in app navigation since it doesn't hit the edge, but it might be a good idea to normalize those in case people are copy and pasting.

You can see that navigating to https://rescript-lang.org/docs/manual/array-and-list redirects to https://rescript-lang.org/docs/manual/array-and-list/.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 31, 2026

Deploying rescript-lang-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: 305e36f
Status:🚫  Build failed.

View logs

@jderochervlk jderochervlk changed the title fix: redirect JS links to v10 docs fix: update URLs in search box to have trailing slash Jan 31, 2026
@jderochervlk jderochervlk force-pushed the vlk/fix-redirects branch 2 times, most recently from c5f281c to d2d2a8f Compare January 31, 2026 20:26
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