Skip to content

Commit 94634f2

Browse files
BEG-81: Remove trailing slash characters from product URLs
1 parent e04ebdc commit 94634f2

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)