Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mistaken "not ok" links #199

Open
mm3509 opened this issue Mar 20, 2023 · 2 comments
Open

Mistaken "not ok" links #199

mm3509 opened this issue Mar 20, 2023 · 2 comments

Comments

@mm3509
Copy link

mm3509 commented Mar 20, 2023

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
Copy link

maddsua commented Mar 20, 2024

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
Copy link
Author

mm3509 commented Mar 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants