-
Notifications
You must be signed in to change notification settings - Fork 77
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
301 redirect error on paradoxValidateLinks should not be hardcoded as an error #404
Comments
paradoxValidateLinks
should not be hardcoded as an error
paradoxValidateLinks
should not be hardcoded as an error
There is a lot of potential to improve the link checking. Adding a |
@ennru Thank you for replying to the issue. We are planning to add With this understanding, 301 is likely to come when we will add new external links. Hence, #367 is a very good approach to fix linking errors by looking at a file (CSV) but in our case particularly we would want deterministic failures and possibly skip 301 to add Does this seem to be a reasonable and feasible scenario in your opinion? Also, there are couple of links in our documentation for which we require |
Don't you get |
Surprisingly, I am not getting This is how we use it in md files: After having Also, when it comes to getting a regular feedback from our nightly build, I think it is important to have such validation tasks run regularly so that we don't create a big pile of maintenance at the time of release to fix all invalid links. And for that matter, I agree and see your point, that if we use the file approach to validate against some expected output, it will solve the problem where I expect 301 errors for github links. One disadvantage of this is that the file would turn out to have all the guthub related 301 errors, which are more than 100 in our project. So again, my natural question is, can't we still simplify the file such that I don't need over 100 entries bypassing 301 errors ? Wouldn't it be better to customise what errors I want to fail on ? Also, I checked out your https://github.com/ennru/site-link-validator, it seems pretty cool. If it would be in working condition with customisable errors to fail on and having first class support of paradox directives, I think, it would be a good fit. |
We are using paradox 0.6.8 version and while running
paradoxValidateLinks
we get a whole bunch of 301 redirect errors, mostly saying thatand we have set
github.base_url
tohttps://github.com/tmtsoftware/myproject/tree/master/..
.By looking at the code of
validateExternalLink
methodHere,
followRedirects
is hardcodedfalse
invalidateExternalLink
method. Hence, can we take a customised boolean setting from users likefollowRedirects
to let them choose whether paradoxValidateLinks errors out on 301 or not ?We can also think to take custom error code list to fail only on limited errors mentioned (white list of error codes or black list of error codes or both available as settings and if both are provided then default to white list).
The text was updated successfully, but these errors were encountered: