Skip to content

Fix redirects: add trailing slash variants for Cloudflare#14070

Closed
matthewp wants to merge 1 commit into
mainfrom
fix-redirects-v2
Closed

Fix redirects: add trailing slash variants for Cloudflare#14070
matthewp wants to merge 1 commit into
mainfrom
fix-redirects-v2

Conversation

@matthewp

Copy link
Copy Markdown
Contributor

Cloudflare requires exact trailing slash matching in _redirects rules. Since the site uses trailingSlash: 'always', browsers request URLs with trailing slashes, but many redirect source patterns were missing them. This adds trailing slash variants for all affected rules.

@netlify

netlify Bot commented Jun 15, 2026

Copy link
Copy Markdown

Deploy Preview for astro-docs-2 failed. Why did it fail? →

Name Link
🔨 Latest commit 090eaa6
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/6a306b4e54363b000877ae62

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

Preview deployment

❌ Deployment failed!

Cloudflare requires exact trailing slash matching in _redirects rules.
Since the site uses trailingSlash: 'always', browsers request URLs with
trailing slashes, but many redirect source patterns were missing them.
@matthewp matthewp closed this Jun 15, 2026
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