JustinBeckwith/linkinator

Same broken link in multiple files is being mentioned only once

Opened this issue · 1 comments

If I have a common broken link in multiple files, it is only being mentioned once in the output.

Consider this scenario:

pageA has 2 broken links:

/broken123
/broken456

pageB has 2 broken links

/broken123
/broken789

The /broken123 link is a common broken link in the 2 pages. When I run linkinator it is not informing me of /broken123 in pageB

pageA/index.html
[404] broken123
[404] broken456
pageB/index.html
[404] broken789

Minimal repro repo: https://github.com/PranjalMaithani/linkinator-repeated-issue

Confirmed. I see the same issue.

As a consequence, taking your example, after fixing broken123 on that page, one would expect the error to be gone. But a new scan will just list it again, but then on a different page. This turn fixing broken links into a whack-a-mole game, making it inefficient.