Munter / hyperlink

A node library and command line tool to test the integrity of your internal an external hyperlinks
231 stars 24 forks source link

Mistaken "not ok" links #199

Open mm3509 opened 1 year ago

mm3509 commented 1 year ago

I use this package to test my site before sending to the server. I always get this error on four pages:

not ok 21 load http://localhost:8080/en-gb/impacto
  ---
    operator: load
    expected: "200 http://localhost:8080/en-gb/impacto"
    actual:   "Invalid URL"
    at: http://localhost:8080/en/inicio (12:480) <a href="/en-gb/impacto#familias">...</a>

It may be due to the hash-redirect. But this link works on the live server, as you can check at https://brokkolat.org/en-gb/impacto#familias

This error is consistent: I've had it for about a year now. I have the site in multiple languages, it happens on most language, but never in the original language at https://brokkolat.org/pt/inicio . I have tried to fix the issue without success, so now I ignore these pages with --skip. It would be nice to add them again, in case one day I do break those page links.

maddsua commented 7 months ago

Unfortunately this was the reason I stopped using hyperlink. This error seems random and I don't feel like forking the project to fix it (I assume it's abandoned since the last commit was like 2 years ago or something). Found a very similar package called linkinator, trying it out, seems pretty good so far

mm3509 commented 7 months ago

Thanks @maddsua . I added linkinator to the original thread on StackOverflow: https://stackoverflow.com/questions/68301886/test-all-internal-links/78194881#78194881