Skip to content

Add redirect for #verbose-logging anchor to new logging documentation#17047

Merged
CamSoper merged 3 commits intomasterfrom
copilot/fix-broken-anchor-link
Jan 29, 2026
Merged

Add redirect for #verbose-logging anchor to new logging documentation#17047
CamSoper merged 3 commits intomasterfrom
copilot/fix-broken-anchor-link

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 13, 2026

Older Pulumi Azure Native provider versions contain hardcoded links to /docs/support/troubleshooting/#verbose-logging. This anchor no longer exists after the troubleshooting page was reorganized into a hub and verbose logging content moved to /docs/support/debugging/logging/.

Changes

  • Added JavaScript redirect in content/docs/support/troubleshooting/_index.md to redirect #verbose-logging anchor to /docs/support/debugging/logging/#cli-verbose-logging
  • Follows existing pattern established by the #conflict redirect in the same file
if (window.location.hash === "#verbose-logging") {
  window.location = "/docs/support/debugging/logging/#cli-verbose-logging"
}
Original prompt

This section details on the original issue you should resolve

<issue_title>Broken anchor link in older provider versions: docs/support/troubleshooting/#verbose-logging</issue_title>
<issue_description>### Summary

Older versions of Pulumi azure native contain a hardcoded link to /docs/support/troubleshooting/#verbose-logging that no longer resolves correctly. The troubleshooting page was reorganized into a hub page, and the verbose logging content moved to /docs/support/debugging/logging/.

Solution

Added a JavaScript redirect (similar to the existing #conflict redirect) in the troubleshooting _index.md:

if (window.location.hash === "#verbose-logging") {
window.location = "/docs/support/debugging/logging/#cli-verbose-logging"
}This ensures users following the old link from older provider versions are redirected to the correct documentation.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: meagancojocar <50200557+meagancojocar@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix broken anchor link in older provider versions Add redirect for #verbose-logging anchor to new logging documentation Jan 13, 2026
Copilot AI requested a review from meagancojocar January 13, 2026 23:15
@meagancojocar meagancojocar marked this pull request as ready for review January 13, 2026 23:16
@claude
Copy link
Copy Markdown
Contributor

claude Bot commented Jan 13, 2026

Documentation Review

This PR successfully adds a JavaScript redirect for the #verbose-logging anchor that was broken after the troubleshooting page reorganization. The implementation follows the established pattern and correctly redirects to the new location.

✅ Verified

  • Target URL /docs/support/debugging/logging/#cli-verbose-logging exists and anchor is correct
  • File ends with newline as required by style guide
  • JavaScript syntax is correct
  • Follows existing redirect pattern in the same file

📝 Suggestion

The existing redirect for #conflict includes a GitHub issue reference comment for documentation. Consider adding one for this redirect as well:

// Redirect to the new verbose logging page
// https://github.com/pulumi/docs/issues/16985
if (window.location.hash === "#verbose-logging") {
  window.location = "/docs/support/debugging/logging/#cli-verbose-logging"
}

This helps future maintainers understand the context and find related discussions.


Mention @claude if you'd like additional reviews or fixes.

@pulumi-bot
Copy link
Copy Markdown
Collaborator

@CamSoper
Copy link
Copy Markdown
Contributor

@claude Implement your suggestion, please

@claude
Copy link
Copy Markdown
Contributor

claude Bot commented Jan 29, 2026

Claude finished @CamSoper's task in 42s —— View job


Implementation Complete ✅

  • Read current file content
  • Add GitHub issue reference comment
  • Commit and push changes

Added the GitHub issue reference comment (https://github.com/pulumi/docs/issues/16985) above the #verbose-logging redirect, following the same pattern as the existing #conflict redirect.

The change has been committed and pushed to the copilot/fix-broken-anchor-link branch.


|

Co-authored-by: Cam Soper <CamSoper@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@CamSoper CamSoper left a comment

Choose a reason for hiding this comment

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

Automated changes approved. JavaScript redirect follows the established pattern and correctly handles the moved anchor. The target anchor #cli-verbose-logging exists on the destination page. Merging now.

@CamSoper CamSoper enabled auto-merge (squash) January 29, 2026 22:31
@pulumi-bot
Copy link
Copy Markdown
Collaborator

@CamSoper CamSoper merged commit 6b7a7aa into master Jan 29, 2026
12 checks passed
@CamSoper CamSoper deleted the copilot/fix-broken-anchor-link branch January 29, 2026 22:33
tehsis pushed a commit that referenced this pull request Feb 9, 2026
…#17047)

* Initial plan

* Add JavaScript redirect for #verbose-logging anchor to new location

Co-authored-by: meagancojocar <50200557+meagancojocar@users.noreply.github.com>

* Add GitHub issue reference to verbose-logging redirect

Co-authored-by: Cam Soper <CamSoper@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: meagancojocar <50200557+meagancojocar@users.noreply.github.com>
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Cam Soper <CamSoper@users.noreply.github.com>
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.

Broken anchor link in older provider versions: docs/support/troubleshooting/#verbose-logging

4 participants