diff --git a/src/Crawler.php b/src/Crawler.php index 00091af..ac70fb8 100644 --- a/src/Crawler.php +++ b/src/Crawler.php @@ -218,8 +218,10 @@ protected function hasAlreadyCrawled(Url $url) protected function normalizeUrl(Url $url) { if ($url->isRelative()) { + $url->setScheme($this->baseUrl->scheme) - ->setHost($this->baseUrl->host); + ->setHost($this->baseUrl->host) + ->setPort($this->baseUrl->port); } if ($url->isProtocolIndependent()) {