filiph / linkcheck

Fast link checker
https://pub.dartlang.org/packages/linkcheck
MIT License
397 stars 51 forks source link

Does Linkcheck honours http-equiv="refresh"? #102

Closed jmichelgarcia closed 1 year ago

jmichelgarcia commented 1 year ago

Hi,

I'm using this to validate a Hugo website and I think linkcheck is not honouring the redirect. The homepage is requesting a redirect from / to /en. Linkcheck seems to detect that (completely new destination: http://localhost:1313/en/), but finds no links.

If I run /linkcheck :1313/en --debug, then it works as expected. Am I missing anything?


This is what I'm doing:

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>//localhost:1313/en/</title>
    <link rel="canonical" href="//localhost:1313/en/">
    <meta name="robots" content="noindex">
    <meta charset="utf-8">
    <meta http-equiv="refresh" content="0; url=//localhost:1313/en/">
  </head>
</html>