Skip to content

Commit 165948f

Browse files
Merge pull request #3 from aligent/feature/BEG-81_remove_trailing_slashes
Feature/beg 81 remove trailing slashes
2 parents 4407325 + 80e1095 commit 165948f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Model/Product/GetUrlsForProducts.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public function execute(array $productIds, int $storeId): array
7373
continue;
7474
}
7575
try {
76-
$urls[] = $store->getUrl($urlPath);
76+
// remove trailing slashes from urls
77+
$urls[] = rtrim($store->getUrl($urlPath), '/');
7778
} catch (NoSuchEntityException $e) {
7879
continue;
7980
}

0 commit comments

Comments
 (0)