diff --git a/build/flaws/broken-links.ts b/build/flaws/broken-links.ts index f0468bc6b3c7..6650466d31a6 100644 --- a/build/flaws/broken-links.ts +++ b/build/flaws/broken-links.ts @@ -232,6 +232,7 @@ export function getBrokenLinksFlaws( // links in our content but that's a reality of MDN being 15+ years old. } else if ( href.startsWith("https://developer.mozilla.org/") && + !href.startsWith("https://developer.mozilla.org/en-US/curriculum/") && !href.startsWith("https://developer.mozilla.org/en-US/blog/") ) { // It might be a working 200 OK link but the link just shouldn't @@ -283,7 +284,7 @@ export function getBrokenLinksFlaws( } else if ( href.startsWith("/") && !href.startsWith("//") && - !/^\/(discord|en-US\/blog)(\/|$)/.test(href) + !/^\/(discord|en-US\/(blog|curriculum))(\/|$)/.test(href) ) { // Got to fake the domain to sensible extract the .search and .hash const absoluteURL = new URL(href, "http://www.example.com");