* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ declare(strict_types=1); namespace PrestaShop\Module\Mbo\Helpers; use Validate; class UrlHelper { public static function transformToAbsoluteUrl(string $url): string { if (Validate::isAbsoluteUrl($url)) { return $url; } return rtrim(Config::getShopUrl(false), '/') . DIRECTORY_SEPARATOR . ltrim($url, '/'); } }