Open lochhh opened 2 weeks ago
Thanks for digging this up @lochhh!
I'm unsure tbh. having to keep a "whitelist" of redirects is one more maintenance burden for us, but on the other hand, I'd like to know if a previously valid link now points to something irrelevant/scammy.
Given that there is only one redirect, perhaps slight preference towards having an explicit whiteliest?
We currently only have a single redirected URL:
TLDR: Do we want to detect unexpected redirects with linkcheck?
I expected sphinx-build to fail from the above redirect, since we are using the fail-on-warnings mode.
Looking in linkcheck.py, warnings are emitted for unexpected redirects _ONLY IF
linkcheck_allowed_redirects
is configured_.In other words, we get the above outputs because
linkcheck_allowed_redirects
is not configured.If
linkcheck_allowed_redirects
is configured and the redirected URL is in the config, e.g.:If
linkcheck_allowed_redirects
is configured but the redirected URL is not in the config, e.g.:I also just wanted to document this somewhere to avoid going down the same 🐰 🕳️ again 😅