--- a/classes/shop/ShopUrl.php 2026-06-20 19:37:00.962339755 +0000 +++ b/classes/shop/ShopUrl.php 2026-06-20 19:37:01.182205146 +0000 @@ -175,15 +175,14 @@ public static function getMainShopDomain($id_shop = null) { - ShopUrl::cacheMainDomainForShop($id_shop); - - return self::$main_domain[(int) $id_shop] ?? null; + // EduBox: dynamic public domain behind reverse proxy. + // Always use the request host instead of the domain stored in database. + return Tools::getHttpHost(false, false, true); } public static function getMainShopDomainSSL($id_shop = null) { - ShopUrl::cacheMainDomainForShop($id_shop); - - return self::$main_domain_ssl[(int) $id_shop] ?? null; + // EduBox: dynamic public domain behind reverse proxy. + return Tools::getHttpHost(false, false, true); } }