aboutsummaryrefslogtreecommitdiff
path: root/src/phinde/Fetcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/phinde/Fetcher.php')
-rw-r--r--src/phinde/Fetcher.php8
1 files changed, 4 insertions, 4 deletions
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);
}