Skip to content

Commit

Permalink
chore(flaws): exclude /en-US/blog/* from broken-link flaw
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Oct 18, 2023
1 parent 3a2b92f commit 222655f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/flaws/broken-links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ export function getBrokenLinksFlaws(
true
);
}
} else if (href.startsWith("/") && !href.startsWith("//")) {
} else if (
href.startsWith("/") &&
!href.startsWith("//") &&
!/^\/en-US\/blog(\/|$)/.test(href)
) {
// Got to fake the domain to sensible extract the .search and .hash
const absoluteURL = new URL(href, "http://www.example.com");
const found = Document.findByURL(hrefNormalized);
Expand Down

0 comments on commit 222655f

Please sign in to comment.