Skip to content

Conversation

@KianNH
Copy link
Member

@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.

@cloudflare-workers-and-pages
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
Collaborator

@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.

@KianNH KianNH requested a review from GregBrimble as a code owner February 25, 2025 18:16
@KianNH KianNH changed the title [Docs Site] Add trailingSlash: always to Astro config [Docs Site] Support paths with and without trailing slash in local dev Feb 25, 2025
@github-actions
Copy link
Contributor

@github-actions github-actions bot added size/s and removed size/xs labels Feb 25, 2025
@KianNH KianNH merged commit f99009d into production Feb 26, 2025
9 checks passed
@KianNH KianNH deleted the kian/PCX-15650 branch February 26, 2025 20:20
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