diff --git a/src/module-elasticsuite-catalog/Model/Autocomplete/Category/ItemFactory.php b/src/module-elasticsuite-catalog/Model/Autocomplete/Category/ItemFactory.php index 874f672c1..9de449412 100644 --- a/src/module-elasticsuite-catalog/Model/Autocomplete/Category/ItemFactory.php +++ b/src/module-elasticsuite-catalog/Model/Autocomplete/Category/ItemFactory.php @@ -128,9 +128,7 @@ private function getCategoryUrl($category) if ($documentSource && isset($documentSource['url_path'])) { $urlPath = is_array($documentSource['url_path']) ? current($documentSource['url_path']) : $documentSource['url_path']; - $url = trim($this->urlBuilder->getUrl($urlPath), '/') . $this->categoryUrlSuffix; - - return $url; + return trim($this->urlBuilder->getDirectUrl($urlPath), '/') . $this->categoryUrlSuffix; } return $category->getUrl();