Skip to content

[website] Add trailing slashes for links#189

Open
zpao wants to merge 1 commit intomainfrom
website-trailing-slash
Open

[website] Add trailing slashes for links#189
zpao wants to merge 1 commit intomainfrom
website-trailing-slash

Conversation

@zpao
Copy link
Contributor

@zpao zpao commented Feb 13, 2026

Caught this adding algolia - we're generating links without the trailing slash which is fine client side but with GitHub pages results in a redirect to the URL with a trailing slash in direct HTTP requests.

Caught this adding algolia - we're generating links without the trailing
slash which is fine client side but with GitHub pages results in
a redirect to the URL with a trailing slash in direct HTTP requests.
Copilot AI review requested due to automatic review settings February 13, 2026 00:01
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 13, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Docusaurus site configuration to avoid GitHub Pages redirects by ensuring generated site links include trailing slashes.

Changes:

  • Enable trailingSlash: true in the Docusaurus config to generate URLs with trailing slashes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 24 to +32
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/clusterscope',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebookresearch', // Usually your GitHub org/user name.
projectName: 'clusterscope', // Usually your repo name.
trailingSlash: true,
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

baseUrl is set to '/clusterscope' (no trailing /), but the surrounding comment indicates it should be '/<projectName>/'. With trailingSlash: true (and on GitHub Pages), leaving baseUrl without a trailing slash can still cause an extra redirect for the site root and may lead to inconsistent URL joining. Consider updating baseUrl to '/clusterscope/' to fully eliminate trailing-slash redirects and align with Docusaurus’ expected format.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants