diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index 8d1211c..be9821d 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -826,6 +826,7 @@ protected function initializeRequestGlobals(Request $request) { global $base_url; // Set and derived from $base_url by this function. global $base_path, $base_root; + global $base_secure_url, $base_insecure_url; // @todo Refactor with the Symfony Request object. if (isset($base_url)) { @@ -863,6 +864,8 @@ protected function initializeRequestGlobals(Request $request) { $base_path = '/'; } } + $base_secure_url = str_replace('http://', 'https://', $base_url); + $base_insecure_url = str_replace('https://', 'http://', $base_url); } /**