Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs Site] Add trailingSlash: always to Astro config #19596

Open
wants to merge 1 commit into
base: production
Choose a base branch
from

Conversation

KianNH
Copy link
Contributor

@KianNH KianNH commented Jan 31, 2025

Summary

This was highlighted by a chance in our sidebar logic - we shouldn't "support" links like /workers and should direct people to /workers/ as all links and redirects written should use the trailing slash.

Copy link

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1859d12
Status: ✅  Deploy successful!
Preview URL: https://c5446624.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://kian-pcx-15650.cloudflare-docs-7ou.pages.dev

View logs

Copy link
Contributor

@kodster28 kodster28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooh, ty!

This is very annoying b/c otherwise we sometimes have to do double redirects for each version.

I should really set aside time quarterly to review our config options 😓

@GregBrimble
Copy link
Contributor

Consider html_handling = "force-trailing-slash" also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants