Update middleware.ts integrations #13888
BugBot Review
BugBot Analysis Progress (2m 42s elapsed)
✅ Gathered PR context (2s)
✅ Analyzed code changes (0s)
✅ Completed bug detection — 2 potential bugs found (2m 38s)
✅ Validation and filtering completed (0s)
✅ Posted analysis results — 2 bugs reported (2s)
✅ Analysis completed successfully (0s)
Final Result: BugBot completed review and found 2 potential issues
Request ID: serverGenReqId_b4e72257-cc55-4c2b-812a-487c189dfe9f
Details
Bug: Redirect Path Error Causes 404
The redirect for /organization/integrations/elba/ was incorrectly modified to /organization/integrations/elba-alpha/ when moved from DEVELOPER_DOCS_REDIRECTS to USER_DOCS_REDIRECTS. This change was unintended, as the PR aimed to only move redirects, not alter their paths. Consequently, existing links to the original /organization/integrations/elba/ URL will now result in 404 errors.
src/middleware.ts#L222-L225
Lines 222 to 225 in 703cee1
Bug: Removed Redirects Cause User Errors
The commit removes several functional redirects from DEVELOPER_DOCS_REDIRECTS without replacement, which will cause 404 errors for users. The affected paths include /feature-flags/options-backed-features/, /sdk/metrics/, /backend/feature-flags/options-backed-features/, and /api-server/application-domains/feature-flags/options-backed-features/.
src/middleware.ts#L3650-L3668
Lines 3650 to 3668 in 703cee1
src/middleware.ts#L3860-L3868
Lines 3860 to 3868 in 703cee1
Was this report helpful? Give feedback by reacting with 👍 or 👎