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 self-assigned this Mar 6, 2025
Copy link
Collaborator

@shainaraskas shainaraskas left a comment

Choose a reason for hiding this comment

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

ok!

@colleenmcginnis colleenmcginnis enabled auto-merge (squash) March 6, 2025 14:27
@colleenmcginnis colleenmcginnis merged commit 4b08adf into main Mar 6, 2025
3 of 4 checks passed
@colleenmcginnis colleenmcginnis deleted the fix-external-links-deploy-manage branch March 6, 2025 14:28
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