Skip to content

Commit

Permalink
Generate proper link to order show
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaGallinari committed Sep 26, 2024
1 parent af07b35 commit e55b4e7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ public function redirectToPausePayWhenFromMyAccount(GenericEvent $event): void

$shopOrderUrl = $this->urlGenerator->generate(
'sylius_shop_order_show',
['tokenValue' => $order->getTokenValue()]
[
'tokenValue' => $order->getTokenValue(),
'_locale' => $order->getLocaleCode(),
]
);

if (!str_contains($haystack, $shopOrderUrl)) {
Expand Down

0 comments on commit e55b4e7

Please sign in to comment.