Skip to content

Commit

Permalink
Fix link to $originalUrl on linkurlparser
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 committed Jul 1, 2024
1 parent b7678ff commit 90aa275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UrlParsers/LinkUrlParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 90aa275

Please sign in to comment.