#40486HTTP Redirecs mark links as defect
Description
The following code (ExternalLinktype.php) marks all redirected links as defect or “not valid”.
IMO only HTTP status 400 and above should mark links as defect.
Many websites response with a HTTP redirect at the startpage (http://www.example.org > http://www.example.org/de-DE/)
I think, this is ok and shouldn’t mark the link as corrupt.
A backwards compatible solution could be to implement a TypoScript configure option…
if (isset($response) && $response->getStatus() >= 300) {
$isValidUrl = FALSE;
$errorParams['errorType'] = $response->getStatus();
$errorParams['message'] = $response->getReasonPhrase();
}
if (!$isValidUrl) {
$this->setErrorParams($errorParams);
}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.