Skip to content

Commit

Permalink
Fix save when setting up local dev (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxfos authored Jun 19, 2024
1 parent dc789f9 commit 1e7a798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/Http/BoldClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ private function getUrl(int $websiteId, string $url): string
$host = $parseApiUrl['host'];
$path = $parseApiUrl['path'];
$tunnelDomain = ltrim($path, '/');
$baseApiUrl = $scheme.'://'.$host;
$baseApiUrl = $scheme.'://'.$host.'/';

if ($url === 'shops/v1/info') {
$apiUrl = $baseApiUrl;
}

if (str_contains($url, 'checkout_sidekick')) {
$apiUrl = $baseApiUrl.'/sidekick-'.$tunnelDomain;
$apiUrl = $baseApiUrl.'sidekick-'.$tunnelDomain;
}
}

Expand Down

0 comments on commit 1e7a798

Please sign in to comment.