Should linkcheck
allow redirected URLs or raise these as warnings?
#330
Labels
question
Further information is requested
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 😅
The text was updated successfully, but these errors were encountered: