Skip to content

Commit

Permalink
Merge pull request #3 from aligent/feature/BEG-81_remove_trailing_sla…
Browse files Browse the repository at this point in the history
…shes

Feature/beg 81 remove trailing slashes
  • Loading branch information
quangdo-aligent committed Jun 17, 2022
2 parents 4407325 + 80e1095 commit 165948f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Model/Product/GetUrlsForProducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public function execute(array $productIds, int $storeId): array
continue;
}
try {
$urls[] = $store->getUrl($urlPath);
// remove trailing slashes from urls
$urls[] = rtrim($store->getUrl($urlPath), '/');
} catch (NoSuchEntityException $e) {
continue;
}
Expand Down

0 comments on commit 165948f

Please sign in to comment.