Skip to content

Conversation

colleenmcginnis
Copy link
Contributor

In the migration tool, external URLs that contained .html were incorrectly modified to use .md.

To (attempt) to fix these links:

  1. I ran a script to find URLs that started with http (i.e. is not an internal or cross-repo link) and included .md somewhere in the URL.
  2. Then I ran all the resulting URLs through an external link-checker.
    i. If I got a 200 status code back, I didn't do anything to the link.
    ii. If I got a 404 status code back, I swapped out the .md with .html.
  3. I reran the link-checker to make sure all the updated links were now returning 200.

@colleenmcginnis colleenmcginnis requested a review from marciw March 6, 2025 01:09
@colleenmcginnis colleenmcginnis self-assigned this Mar 6, 2025
Copy link
Contributor

@marciw marciw left a comment

Choose a reason for hiding this comment

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

thank you!

@marciw marciw enabled auto-merge (squash) March 6, 2025 16:39
@marciw marciw merged commit 65ff72d into main Mar 6, 2025
3 of 4 checks passed
@marciw marciw deleted the fix-external-links-troubleshoot branch March 6, 2025 16:42
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