diff --git a/src/UrlParsers/LinkUrlParser.php b/src/UrlParsers/LinkUrlParser.php index db409fc..603d172 100644 --- a/src/UrlParsers/LinkUrlParser.php +++ b/src/UrlParsers/LinkUrlParser.php @@ -28,7 +28,7 @@ public function addFromHtml(string $html, UriInterface $foundOnUrl, ?UriInterfac collect($allLinks) ->filter(fn (Url $url) => $this->hasCrawlableScheme($url)) ->map(fn (Url $url) => $this->normalizeUrl($url)) - ->filter(function (Url $url) use ($foundOnUrl) { + ->filter(function (Url $url) use ($foundOnUrl, $originalUrl) { if (! $node = $this->crawler->addToDepthTree($url, $foundOnUrl, $originalUrl)) { return false; }