From 7dcb15a172e9fe3b3ef6fd17435d225ad6b126b6 Mon Sep 17 00:00:00 2001 From: Dmytro Androshchuk Date: Thu, 19 Dec 2019 12:48:30 +0200 Subject: [PATCH] Fixes #1643 category url in autocomplete --- .../Model/Autocomplete/Category/ItemFactory.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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();