Skip to content

Commit

Permalink
remove duplicate slash in url
Browse files Browse the repository at this point in the history
  • Loading branch information
stentrop committed Nov 10, 2023
1 parent e25335f commit 0cc49e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Services/OrderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ public function getConfirmationUrl(string $confirmationBaseUrl, int $orderId, st
{
if (RouteConfig::isActive(RouteConfig::CONFIRMATION)) {
if (strlen($orderAccessKey) && (int)$orderId > 0) {
$confirmationBaseUrl = rtrim($confirmationBaseUrl, '/');
$confirmationBaseUrl .= '/' . $orderId . '/' . $orderAccessKey;
}
} elseif (in_array(RouteConfig::CONFIRMATION, RouteConfig::getEnabledRoutes())
Expand Down

0 comments on commit 0cc49e1

Please sign in to comment.