Skip to content

Fix mistakes in .openpublishing.redirection.json #5451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Rageking8
Copy link
Contributor

Fix:

  • Duplicated .md extension in source_path
  • Wrong redirect_url

Copy link
Contributor

Learn Build status updates of commit 237718a:

✅ Validation status: passed

File Status Preview URL Details
.openpublishing.redirection.json ✅Succeeded

For more details, please refer to the build report.

Copy link
Contributor

PRMerger Results

Issue Description
Json File This PR contains json file(s).

@@ -13752,12 +13752,12 @@
},
{
"source_path": "docs/c-runtime-library/operator-delete-crt.md",
"redirect_url": "docs/c-runtime-library/delete-operator-crt",
"redirect_url": "/cpp/c-runtime-library/delete-operator-crt",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The old redirect_url redirects https://learn.microsoft.com/cpp/c-runtime-library/operator-delete-crt to https://learn.microsoft.com/en-us/cpp/c-runtime-library/docs/c-runtime-library/delete-operator-crt, leading to a 404.

"redirect_document_id": false
},
{
"source_path": "docs/c-runtime-library/operator-new-crt.md",
"redirect_url": "docs/c-runtime-library/new-operator-crt",
"redirect_url": "/cpp/c-runtime-library/new-operator-crt",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The old redirect_url redirects https://learn.microsoft.com/cpp/c-runtime-library/operator-new-crt to https://learn.microsoft.com/en-us/cpp/c-runtime-library/docs/c-runtime-library/new-operator-crt, leading to a 404.

@@ -21,7 +21,7 @@
"redirect_document_id": true
},
{
"source_path": "docs/supported-platforms-visual-cpp.md.md",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The extra .md causes the redirection to not work (same for the other occurrence).

@v-regandowner
Copy link
Contributor

@TylerMSFT - Can you review the proposed changes?

IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged Tracking label for the PR review team label Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants