diff --git a/module/Core/src/Service/UrlShortener.php b/module/Core/src/Service/UrlShortener.php index bc422cab..9d6927bf 100644 --- a/module/Core/src/Service/UrlShortener.php +++ b/module/Core/src/Service/UrlShortener.php @@ -117,7 +117,9 @@ class UrlShortener implements UrlShortenerInterface protected function checkUrlExists(UriInterface $url) { try { - $this->httpClient->request('GET', $url); + $this->httpClient->request('GET', $url, ['allow_redirects' => [ + 'max' => 15, + ]]); } catch (GuzzleException $e) { throw InvalidUrlException::fromUrl($url, $e); }