X-Git-Url: https://git.cweiske.de/phinde.git/blobdiff_plain/d7651fd96dcfa2829519504e4c8ec1ce511cd57f..31f0bc4f5a980b40ab8d6ebc6cf682e97f59f647:/src/phinde/Fetcher.php diff --git a/src/phinde/Fetcher.php b/src/phinde/Fetcher.php index b5644af..5ea0cf2 100644 --- a/src/phinde/Fetcher.php +++ b/src/phinde/Fetcher.php @@ -52,7 +52,7 @@ class Fetcher ); } - $effUrl = $res->getEffectiveUrl(); + $effUrl = Helper::removeAnchor($res->getEffectiveUrl()); if ($effUrl != $url) { $this->storeRedirect($url, $effUrl); $url = $effUrl; @@ -69,11 +69,11 @@ class Fetcher protected function storeRedirect($url, $target) { - $esDoc = new \stdClass(); + $esDoc = Helper::baseDoc($url); $esDoc->status = (object) array( - 'location' => $target + 'location' => $target, + 'findable' => false, ); - $esDoc->url = $url; $this->storeDoc($url, $esDoc); }