Repository navigation
Conversation
…ml paths Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Size Change: 0 B Total Size: 12.1 MB ℹ️ View Unchanged
|
⚡️ Lighthouse report for the deploy preview of this PR
|
|
Size Change: 0 B Total Size: 12.1 MB ℹ️ View Unchanged
|
…erve-html-client-redirects # Conflicts: # packages/docusaurus/src/commands/serve/__tests__/requestHandler.test.ts
Motivation
For a redirect from a
.htmlpath, likefrom: '/old-page.html',@docusaurus/plugin-client-redirectswritesold-page.html/index.html, orold-page.html.htmlwithtrailingSlash: false.docusaurus serveredirected/old-page.htmlto/old-page, which is a 404, so these redirects never worked. The previous PR of this stack captures the bug.docusaurus servenow treats a.htmlpath as a page when one of these 2 files exists:trailingSlashredirect like for other pages:/old-page.htmlredirects to/old-page.html/withtrailingSlash: true.cleanUrlsoption would redirect the.htmlpath, and without it, serve-handler doesn't look for these files.End-to-end check: a real site built with plugin-client-redirects
/old-page.htmlrequested on the build output, before and after:Test Plan
pnpm test packages/docusaurus/src/commands/serve. Only the/redirect-folder.html(/)and/redirect-file.html(/)snapshot rows change, and the 2TODO fixtests are flipped.Test links
Deploy preview: https://deploy-preview-12920--docusaurus-2.netlify.app/
Related issues/PRs
Stacked on meta/docusaurus#12919
🤖 Generated with Claude Code
Summary by CodeRabbit
.htmlURLs. These pages now resolve to their corresponding content across trailing-slash settings and base URLs.