Fix legacy Agents SDK and SWML redirects to equivalent pages - #663
Fix legacy Agents SDK and SWML redirects to equivalent pages#663Devon-White wants to merge 4 commits into
Conversation
…ion indexes Refs #526. The /docs/agents-sdk/:slug* wildcard collapsed every legacy Agents SDK URL to the Server SDKs product root. All 70 old guide slugs survive unchanged under /docs/server-sdks/guides/, so the wildcards now preserve the tail, with explicit entries for the reference pages that moved elsewhere. Also adds the old /docs/swml/methods/* tree (404 today) and the SWAIG.defaults path, which never had its own page. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Verified against the preview deploy (
CI ( |
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Redirect-only audit corrections are pushed to PR #663 at
Both CI jobs passed. All 307 deployed-preview probes passed: 295 one-hop redirects ending at the exact expected page (HTTP 200), plus 12 direct 404s. Five initial timeouts passed on retry. The separate docs-legacy map patch is prepared but not pushed. Its 330 corrected redirect entries were tested with the repository's actual nginx configuration; all 114 distinct destinations returned production HTTP 200 without another redirect. Twelve exact map exclusions return real 404s instead of falling through to the docs-root catch-all. A small companion test-script patch handles those intentional exclusions. Fragment preservation and a permanent redirect-integrity CI gate remain outside this change. |
Refs #526 (epic #559).
Legacy Agents SDK links currently collapse to the Server SDK overview, and old SWML paths either take an extra hop or return 404. This change maps known old paths directly to equivalent existing pages.
Only
fern/docs.ymlchanges. No documentation content is added, moved, restored, or rewritten.Validation on commit
d38fd976ca: both CI jobs passed, including the authenticated Fern published-site comparison and markdown checks. The deployed preview passed all 307 URL probes: 295 redirects reached the expected page in one hop with HTTP 200, and 12 no-successor paths returned HTTP 404 without redirecting. Five initial network timeouts passed on retry. The local audit also checked current page slugs, duplicate sources, source collisions, and additional redirect hops.The developer.signalwire.com side is a separate docs-legacy redirect map patch. Fragment preservation and a permanent redirect-integrity CI gate remain outside this PR.