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
Links with %2A in them are incorrectly reported as 301 redirects #37
Comments
in a URL, |
Hello. It is a bug in the checker because the link to esrb has %2A in it and the checker is incorrectly converting it to * then detecting a redirect to %2A. To be clear, the URL in the source website is: However, the checker thinks that the source website has the link of: |
again, in a URL, |
I understand that but the link checker is still erroneous in that it's reporting a 200 response as a 301 redirect. |
Sorry I should have been clearer - if you want to avoid the 301, you need to double-escape "%2A" in your link, that is use "%252A" where you're currently using "%2A" (%25 being interpreted a "%"). What happens right now is: Hopes this is clearer. |
Thanks for the suggestion. I changed it to https://www.esrb.org/ratings/34456/Gal%252AGun%3A+Double+Peace/ and it's doing a 301 redirect and the link checker is reporting a 301 redirect. So, I'm going to change it back to what it was which gave a 200 response while the link checker reports a 301 response which is a bug. |
Just to be clear - all of these are reported as 301 redirects using the link checker: https://www.esrb.org/ratings/34456/Gal*Gun%3A+Double+Peace/ So, no matter what I change it to, the link checker reports a 301 redirect. Also, the 2nd URL is displayed as the 1st URL in the checker results. I'm going to stick with the 2nd URL because that results in a 200 response. Hopefully, the link checker can be updated to reflect that. |
Whenever a link is checked that contains %2A, the checker appears to convert that to a * then reports a 301 redirect even if the URL with %2A in it actually results in a 200 response.
Example: https://validator.w3.org/checklink?uri=https%3A%2F%2Fvideochums.com%2Freview%2Fgal-gun-double-peace
In the above tested page, the link in the source code is https://www.esrb.org/ratings/34456/Gal%2AGun%3A+Double+Peace/ which warrants a 200 response. However, the tool thinks that the link is https://www.esrb.org/ratings/34456/Gal*Gun%3A+Double+Peace/ which 301 redirects.
The text was updated successfully, but these errors were encountered: