Conversation
Add explicit redirect rules for prior Pro landing routes so canonical /docs/pro slug cleanup does not break existing inbound links.
WalkthroughAdded 10 new 301 redirect rules to the Docusaurus redirects configuration file, mapping multiple legacy Pro URL path variants (including different extensions and slash patterns) to the consolidated Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Missing
.mdredirects for/pro/prefix paths- Added the missing
/pro/react-on-rails-pro.mdand/pro/home-pro.mdredirects to preserve.mdlegacy links under the/pro/prefix.
- Added the missing
Or push these changes by commenting:
@cursor push 1c67af2e47
Preview (1c67af2e47)
diff --git a/prototypes/docusaurus/static/_redirects b/prototypes/docusaurus/static/_redirects
--- a/prototypes/docusaurus/static/_redirects
+++ b/prototypes/docusaurus/static/_redirects
@@ -15,8 +15,10 @@
/docs/pro/home-pro.md /docs/pro/ 301
/pro/react-on-rails-pro /docs/pro/ 301
/pro/react-on-rails-pro/ /docs/pro/ 301
+/pro/react-on-rails-pro.md /docs/pro/ 301
/pro/home-pro /docs/pro/ 301
/pro/home-pro/ /docs/pro/ 301
+/pro/home-pro.md /docs/pro/ 301
/react-on-rails/docs/* /docs/:splat 301
/react-on-rails/docs /docs 301
/react-on-rails-pro/docs/* /docs/:splat 301You can send follow-ups to this agent here.
| /pro/react-on-rails-pro /docs/pro/ 301 | ||
| /pro/react-on-rails-pro/ /docs/pro/ 301 | ||
| /pro/home-pro /docs/pro/ 301 | ||
| /pro/home-pro/ /docs/pro/ 301 |
There was a problem hiding this comment.
Missing .md redirects for /pro/ prefix paths
Low Severity
The /docs/pro/ prefix variants (lines 10–15) each cover bare slug, trailing-slash, and .md forms, but the /pro/ prefix variants (lines 16–19) are missing the .md counterparts (/pro/react-on-rails-pro.md and /pro/home-pro.md). Inbound links using those .md paths would 404 instead of redirecting to /docs/pro/.
|
Cloudflare preview deployed.
|



Summary
Add explicit redirects from legacy Pro landing routes to
/docs/pro/so slug canonicalization does not break existing inbound links.This covers
/docs/pro/react-on-rails-pro*,/docs/pro/home-pro*, and/pro/*variants, including trailing slash and.mdforms.Closes #70.
Test Plan
Note
Low Risk
Low risk: static redirect-table updates only, with the main risk being incorrect mappings causing unexpected navigation or SEO effects.
Overview
Adds explicit 301 redirects in
prototypes/docusaurus/static/_redirectsto preserve inbound links to legacy React on Rails Pro landing slugs.The new rules canonicalize
/docs/pro/*and/pro/*variants (including trailing-slash and.mdforms forreact-on-rails-proandhome-pro) to the canonical/docs/pro/route.Written by Cursor Bugbot for commit af773a8. This will update automatically on new commits. Configure here.
Summary by CodeRabbit