Skip to content

Commit

Permalink
Merge pull request #200 from EmicoEcommerce/fix-empty-slug
Browse files Browse the repository at this point in the history
fix: empty slug
  • Loading branch information
ah-net authored Jul 26, 2024
2 parents 53d2b80 + 5e8a84c commit 15915d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Model/Catalog/Layer/Url/Strategy/FilterSlugManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ public function getSlugForFilterItem(Item $filterItem): string

$slug = $this->translitUrl->filter($attribute);

if (empty($slug)) {
//should never happen, but just in case we return the attribute
return $attribute;
}

/** @var AttributeSlug $attributeSlugEntity */
$attributeSlugEntity = $this->attributeSlugFactory->create();
$attributeSlugEntity->setAttribute($attribute);
Expand Down

0 comments on commit 15915d0

Please sign in to comment.