[codex] fix Search Console indexing and redirects#131
[codex] fix Search Console indexing and redirects#131
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b74a63db7d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| /docs/search_apis_versioned/1.0.0/:slug /docs/search_apis_versioned/1.0.0/:slug/ 301 | ||
| /docs/user_related_apis_prelive/:slug /docs/user_related_apis_prelive/:slug/ 301 | ||
| /docs/user_related_apis_versioned/:slug /docs/user_related_apis_versioned/1.0.0/:slug/ 301 | ||
| /docs/user_related_apis_versioned/:slug/ /docs/user_related_apis_versioned/1.0.0/:slug/ 301 |
There was a problem hiding this comment.
Exclude scopes from generic user API version redirect
This catch-all rule also matches /docs/user_related_apis_versioned/scopes/, which then redirects to /docs/user_related_apis_versioned/1.0.0/scopes/; that URL is explicitly redirected back to /docs/user_related_apis_versioned/scopes/ earlier in the same file, creating a 301 loop. In production this makes the scopes page unreachable (including links like /docs/user_related_apis_versioned/scopes#search).
Useful? React with 👍 / 👎.
|
Not needed after #136 |
What changed
auth-*alias docs to avoid duplicate crawl targetsWhy
Search Console was reporting redirect, duplicate, and 404 indexing issues caused by mixed canonical forms, duplicate versioned/unversioned API docs, and legacy URLs that no longer resolved.
Impact
Validation
yarn buildpassed on this exact change set before it was cherry-picked onto this clean branch/search/,/request-scopes/, and unversioned API-family URLsauth-*.api.mdxalias docs are removed after generation