diff --git a/src/MultiVersion.php b/src/MultiVersion.php index fc6ca81..9f0f9b3 100644 --- a/src/MultiVersion.php +++ b/src/MultiVersion.php @@ -287,7 +287,7 @@ private function getBaseUrlPath( string $environment ) : string { $useSsl = $this->yamlMainConfig[ 'use_ssl' ] ?? true; $environment = $this->yamlMainConfig[ 'environments' ][ $environment ]; - $topDomain = $this->yamlMainConfig[ 'top_domain' ]; + $topDomain = $this->yamlMainConfig[ 'config_' . $environment ]['top_domain'] ?? $this->yamlMainConfig[ 'top_domain' ]; return ( $useSsl ? "https" : "http" ) . "://{$environment}.$topDomain";