Skip to content

Redirect the remaining browser_extension, external_services and pure_docker paths - #2061

Merged
marcleblanc2 merged 2 commits into
mainfrom
enrique/missing-hyphen-redirects
Oct 2, 2026
Merged

marcleblanc2 merged 2 commits into
mainfrom
enrique/missing-hyphen-redirects

Conversation

@enriquegh

@enriquegh enriquegh commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #2059, for the other sections with the same gap.

Problem

The underscore-to-hyphen rename (089d51a) added redirects only for pages whose own filename changed, so pages where only a directory changed were left out. These old paths return 404 today, though each page exists at its hyphenated path:

  • /integration/browser_extension/how-tos
  • /integration/browser_extension/how-tos/troubleshooting
  • /integration/browser_extension/quickstart
  • /integration/browser_extension/references
  • /integration/browser_extension/references/features
  • /integration/browser_extension/references/privacy
  • /self-hosted/external_services/postgres
  • /self-hosted/external_services/redis

Related, in the same entries:

  • /admin/external_services/postgres and /admin/external_services/redis redirect to the /self-hosted/external_services/... paths above, so they also end in a 404.
  • /admin/external_services and /admin/external_services/object_storage are not broken: they already reach their page, through two redirects, for example /admin/external_services/object_storage → /self-hosted/external_services/object_storage → /self-hosted/external-services/object-storage. This PR only removes the middle step.
  • /self-hosted/updates/pure_docker (the URL before the rename) returns 404: chore/platform: deprecate pure docker deployment #1777 changed that entry's source to /self-hosted/updates/pure-docker instead of adding a second entry.

Fix

  • Add a redirect for each of the eight paths, next to its sibling entries.
  • Point the four /admin/external_services* entries straight at the hyphenated pages, so each takes one redirect. For postgres and redis this fixes the 404; for /admin/external_services and object_storage it only shortens two redirects to one.
  • Add /self-hosted/updates/pure_docker → /self-hosted/deploy/docker-compose/upgrade, the same destination as pure-docker.

Test plan

  • node dev/check-redirects.mjs --baseline <main>.json: ✅ No redirects broken by this change. Total findings drop from 542 to 538 (the four /admin/external_services* entries).
  • Ran proxy() with a NextRequest for all 13 paths: each returns 307 to a page that exists under docs/.
  • I listed every page that existed before 089d51a and checked whether its path is a page or redirect today. After this PR and Redirect the remaining /code_insights pages to /code-insights #2059, the only old paths still unresolved are pages that were later deleted, not renamed: /cli/references/*, /notebooks/*, /self-hosted/deploy/docker-single-container/*, /admin/teams, /admin/access_control/ownership, /admin/repo/pre_load_from_local_disk.

…docker paths

The underscore-to-hyphen rename (089d51a) added redirects only for pages whose own filename changed, so pages where only a directory changed were left out. Also point /admin/external_services/* straight at the hyphenated pages: postgres and redis led to the 404s above, and the other two went through another redirect. Restore /self-hosted/updates/pure_docker, which #1777 replaced with the hyphenated path.

Amp-Thread-ID: https://ampcode.com/threads/T-58bff9ec-2d9e-4573-9e65-6cc7312f5f4a
Co-authored-by: Amp <amp@ampcode.com>
@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Oct 2, 2026 7:48pm UTC

Request Review

@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

@marcleblanc2
marcleblanc2 merged commit c5b8587 into main Oct 2, 2026
7 checks passed
@marcleblanc2
marcleblanc2 deleted the enrique/missing-hyphen-redirects branch October 2, 2026 19:49

This branch was successfully deployed

1 active deployment
Preview — f7afe2e5 Deployed Oct 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants