Commit fb9a7cca authored by gbyte.co's avatar gbyte.co

Fix duplicate check bug

parent 560604fa
......@@ -118,11 +118,13 @@ class CustomUrlGenerator extends UrlGeneratorBase {
return FALSE;
}
if ($this->batchSettings['remove_duplicates'] && $this->pathProcessed($data_set['path'])) {
$url_object = Url::fromUserInput($data_set['path'], ['absolute' => TRUE]);
$path = $url_object->getInternalPath();
if ($this->batchSettings['remove_duplicates'] && $this->pathProcessed($path)) {
return FALSE;
}
$url_object = Url::fromUserInput($data_set['path'], ['absolute' => TRUE]);
$entity = $this->entityHelper->getEntityFromUrlObject($url_object);
$path_data = [
......@@ -135,7 +137,7 @@ class CustomUrlGenerator extends UrlGeneratorBase {
? $this->getImages($entity->getEntityTypeId(), $entity->id())
: [],
'meta' => [
'path' => $data_set['path'],
'path' => $path,
]
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment