-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Is your feature request related to a problem? Please describe.
Specifying a domain in linkcheck_ignore
works well for links containing this domain but it doesnn't for links which redirect to a link to the domain to be ignored.
For example, the following configuration:
linkcheck_ignore = [
"https://onlinelibrary.wiley.com", # 403 Client Error: Forbidden for url
]
works perfectly for links like https://onlinelibrary.wiley.com/doi/10.1002/jemt.20597
but not for https://doi.org/10.1002/jemt.20597
, which redirect to https://onlinelibrary.wiley.com/doi/10.1002/jemt.20597
Describe the solution you'd like
The linkcheck_ignore
configuration parameters should also apply to redirect links.
Additional context
See for example hyperspy/hyperspy#3108. This typically happen for DOI links, which are by design permanent url and redirect to urls which can changed. In this case, the DOI should be used in favour of the redirect url however, the linkcheck_ignore
will not be effective on the redirect url.