Skip to content

fix(docs-site): stop redirecting the live auth and migration pages - #3803

Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
docs-sweep/site-redirects
Nov 18, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
docs-sweep/site-redirects

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

getting-started/authentication.md (the full token-resolution guide) and getting-started/migration.md ("Existing Projects") are maintained pages, but two legacy redirects in docs/astro.config.mjs shadow them. On https://microsoft.github.io/apm/ both URLs redirect away (the build warns Could not render /getting-started/authentication ... conflicts with higher priority route):

  • /getting-started/authentication -> /consumer/authentication, whose "Going further" section links back to the getting-started guide: a loop. CLI auth errors (src/apm_cli/core/auth.py) send users to getting-started/authentication/#on-prem-azure-devops-server and similar anchors, which never render. About ten pages link to the guide as the deep reference.
  • /getting-started/migration -> /troubleshooting/migration, which tells readers to "start with Existing Projects" at the getting-started URL: same loop.

This change removes the two redirects so the pages build and serve again. Sidebar placement is unchanged.

Issue and approved scope

Issue: Refs #3800

Human scope-approval comment: #3800 (comment)

Does this PR complete the issue, or what remains? Partial: one finding from the corpus re-sweep. Other area fixes land in separate PRs.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally: cd docs && npm ci && npm run build exits 0; "All internal links are valid"; "Checked 1191 relative link(s) ... No broken relative links found". dist/getting-started/authentication/index.html and dist/getting-started/migration/index.html now render the page titles instead of a meta-refresh, and the route-conflict warnings for both pages are gone.
  • All existing tests pass (no code change)
  • Added tests for new functionality (if applicable)

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour.

/getting-started/authentication and /getting-started/migration are
maintained pages, but legacy redirects shadowed them: the deployed site
sent readers to consumer/authentication and troubleshooting/migration.
Both of those link back to the getting-started page as the deep guide,
so the link loops, and CLI auth errors point users at anchors such as
getting-started/authentication/#on-prem-azure-devops-server that never
render. Drop the two redirects so the pages build again.

Refs #3800

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the documentation redirect removal.

No open issues 🎉

What changed in this PR

Restores access to the maintained authentication and Existing Projects guides by removing legacy redirects that shadow their routes. This addresses one routing issue from the documentation re-sweep in #3800.

Changes:

  • Removes the authentication redirect so the full guide and its linked anchors can render.
  • Removes the migration redirect so the Existing Projects page can render, without changing sidebar placement.
File Description
docs/​astro.config.mjs Removes two redirects that override maintained getting-started pages.

Review effort: Balanced

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 007cb31 into main Nov 18, 2026
26 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the docs-sweep/site-redirects branch November 18, 2026 02:53
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