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

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

Closed
jmichelgarcia opened this issue Sep 14, 2022 · 0 comments
Closed

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

jmichelgarcia opened this issue Sep 14, 2022 · 0 comments

Comments

@jmichelgarcia
Copy link

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:

  • Running: /linkcheck :1313 --debug
  • Output is:
Reading URLs:
http://localhost:1313/
Crawl will start on the following URLs: [http://localhost:1313/]
Crawl will check pages only on URLs satisfying: {http://localhost:1313/**}
Crawl will skip links that match patterns: UrlSkipper<>
Crawl will check the following servers (and their robots.txt) first: {localhost:1313}
Using 8 threads.
Checking robots.txt and availability of server: localhost:1313
Added: http://localhost:1313/ to Worker<1> with 0ms delay
Server check of localhost:1313 complete.
Server check for localhost:1313 complete: connected, robots.txt found.
Done checking: http://localhost:1313/ (HTTP 200) => 1 links
- completely new destination: http://localhost:1313/en/
Added: http://localhost:1313/en/ to Worker<0> with 0ms delay
Done checking: http://localhost:1313/en/ (HTTP 200) => 0 links
  • This is the content of curl localhost:1313:
<!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>
@jmichelgarcia jmichelgarcia closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2022
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

1 participant