Skip to content

Commit

Permalink
use HTTP_HOST if available for lower environments, too
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Apr 26, 2024
1 parent 3f82ce6 commit 7655a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/network/includes-network.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,10 @@ function network_step2( $errors = false ) {
$hostname = isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : $hostname;
break;
case 'test':
$hostname = 'test-' . $site_name . '.pantheonsite.io';
$hostname = isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : 'test-' . $site_name . '.pantheonsite.io';
break;
case 'dev':
$hostname = 'dev-' . $site_name . '.pantheonsite.io';
$hostname = isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : 'dev-' . $site_name . '.pantheonsite.io';
break;
case 'lando':
$hostname = $site_name . '.lndo.site';
Expand Down

0 comments on commit 7655a9e

Please sign in to comment.