gaurav-nelson / github-action-markdown-link-check

Check all links in markdown files if they are alive or dead. 🔗✔️
MIT License
399 stars 77 forks source link

[Feature] Follow "redirect permanent" #172

Closed redcatbear closed 1 month ago

redcatbear commented 1 year ago

Situation

When a server answers with HTTP status code 301 (redirect permanent) the link checker treats this as a broken link, even if the link the redirect points to a valid page that is served with 200 (OK).

Feature Request

It would be nice if the link checker follows redirects and evaluates the link health based on whether the redirect target is reachable with 200.

gaurav-nelson commented 1 year ago

@redcatbear This relates to the underlying https://github.com/tcort/markdown-link-check library. I suggest you can check and submit a new feature request in that repository.

redcatbear commented 1 year ago

Hi @gaurav-nelson good point. Looks like someone had the same idea already tcort/markdown-link-check#151

So I would say this ticket here depends on that markdown-link-check issue.

gaurav-nelson commented 1 month ago

I have stopped working on this action. Please try https://github.com/UmbrellaDocs/linkspector and https://github.com/UmbrellaDocs/action-linkspector instead.