Skip to content

Commit

Permalink
fix(flaws): stop reporting absolute MDN blog links as broken (#9080)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Jul 18, 2023
1 parent 1f935a4 commit e59323f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/flaws/broken-links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ export function getBrokenLinksFlaws(
// Note! If it's not known that the URL's domain can be turned into https://
// we do nothing here. No flaw. It's unfortunate that we still have http://
// links in our content but that's a reality of MDN being 15+ years old.
} else if (href.startsWith("https://developer.mozilla.org/")) {
} else if (
href.startsWith("https://developer.mozilla.org/") &&
!href.startsWith("https://developer.mozilla.org/en-US/blog/")
) {
// It might be a working 200 OK link but the link just shouldn't
// have the full absolute URL part in it.
const absoluteURL = new URL(href);
Expand Down

0 comments on commit e59323f

Please sign in to comment.