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.

Copy link
Contributor

@florent-leborgne florent-leborgne left a comment

Choose a reason for hiding this comment

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

Thanks @colleenmcginnis, completely forgot to keep checking those after we first found it ❤️

@florent-leborgne florent-leborgne enabled auto-merge (squash) March 6, 2025 08:23
@florent-leborgne florent-leborgne merged commit 3ff009b into main Mar 6, 2025
3 of 4 checks passed
@florent-leborgne florent-leborgne deleted the fix-external-links-explore-analyze branch March 6, 2025 08:25
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