From 92e4b22f2d705e637399d6eb52c08220e8f5dfde Mon Sep 17 00:00:00 2001 From: David Snopek Date: Thu, 21 Nov 2019 09:33:35 -0600 Subject: [PATCH] Fix bug with empty language prefix mangling https:// to http:/ --- CRM/Utils/System/Drupal8.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/System/Drupal8.php b/CRM/Utils/System/Drupal8.php index 68a91361e3..2b22a796c4 100644 --- a/CRM/Utils/System/Drupal8.php +++ b/CRM/Utils/System/Drupal8.php @@ -761,7 +761,7 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase { if ($addLanguagePart && !empty($config['prefixes'][$language])) { $url .= $config['prefixes'][$language] . '/'; } - if ($removeLanguagePart) { + if ($removeLanguagePart && !empty($config['prefixes'][$language])) { $url = str_replace("/" . $config['prefixes'][$language] . "/", '/', $url); } } -- 2.25.1