镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

redirects: turn 11 unreachable rules into 4 that work - #2036

Draft
marcleblanc2 wants to merge 1 commit into
mainfrom
marc/redirects/batch-3
Draft

marcleblanc2 wants to merge 1 commit into
mainfrom
marc/redirects/batch-3

Conversation

@marcleblanc2

Copy link
Copy Markdown
Contributor

Third dead-rule cleanup after #1966. Small behaviour change: four paths that 404 on production today start redirecting.

Was Why it never matched Now
/docs/admin/deploy_executors → https://sourcegraph.com/docs/admin/executors/deploy_executors proxy strips /docs before matching /admin/deploy_executors → /self-hosted/executors (where the old chain ended)
/admin/install/cluster.md → /admin/deploy/index.md and → /admin/deploy (2 rules) .md paths are rewritten to /api/md before the lookup /admin/install/cluster → /self-hosted/deploy
/cody/core-concepts/embeddings/manage-embeddings#… (6 rules) → /cody/embeddings/manage-embeddings#… browsers never send the fragment; bare path had no rule /cody/core-concepts/embeddings/manage-embeddings → /cody
/cody/core-concepts/embeddings/usage-and-limits#… (2 rules) → /cody/embeddings/usage-and-limits#… same /cody/core-concepts/embeddings/usage-and-limits → /cody

The embeddings destinations follow the neighbouring //Rmv embeddings permanently rule (/cody/core-concepts/embeddings → /cody/); the old /cody/embeddings/* targets no longer exist either. Happy to point them somewhere better if embeddings docs live on.

Verified: first-match table differs on exactly the 6 expected entries (2 unreachable sources gone, 4 bare paths added); file parses to 956 rules.

Independent of the batch 2 and batch 4 PRs; may need a trivial rebase if they merge first.

- /docs/admin/deploy_executors: the proxy strips /docs before matching,
  so this never matched. Now /admin/deploy_executors -> /self-hosted/executors,
  the page its old chain ended on.
- /admin/install/cluster.md (two rules, different destinations): .md
  paths are rewritten to /api/md before the lookup, so neither matched.
  Now /admin/install/cluster -> /self-hosted/deploy.
- 8 #fragment rules for /cody/core-concepts/embeddings/manage-embeddings
  and .../usage-and-limits: browsers never send the fragment and the bare
  paths had no rule, so they 404. Now both bare paths -> /cody, matching
  the neighbouring "Rmv embeddings permanently" rule; the old
  destinations under /cody/embeddings/ no longer exist either.

All four new paths 404 on production today.
@vercel

vercel Bot commented Sep 25, 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 Sep 25, 2026 1:51am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Spell check found 1 issue(s) in this PR

Only findings on lines added by this PR, and in its title and description, are shown.

Pull request description

  • line 10, column 40
    • neighbouring → neighboring

Please correct the spelling, or add words which are correct to cspell-allow-list.txt.

Run npx cspell@10 --no-progress --dot '**/*' locally to check the full repository.

This branch was successfully deployed

1 active deployment
Preview — 7e8fdbfa Deployed Sep 25, 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.

1 participant