Skip to content

Commit

Permalink
Merge pull request #1646 from androshchuk/1643-fix-category-url-in-au…
Browse files Browse the repository at this point in the history
…tocomplete

Fixes #1643 category url in autocomplete
  • Loading branch information
rbayet authored Jan 9, 2020
2 parents 12f25cc + 7dcb15a commit 5c39cdc
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5c39cdc

Please sign in to comment.