diff --git a/Civi/Core/Paths.php b/Civi/Core/Paths.php index cc8311e5b724..8cab188a59f9 100644 --- a/Civi/Core/Paths.php +++ b/Civi/Core/Paths.php @@ -57,7 +57,7 @@ public function __construct() { return \CRM_Core_Config::singleton()->userSystem->getDefaultFileStorage(); }) ->register('wp.frontend.base', function () { - return array('url' => CIVICRM_UF_BASEURL . '/'); + return array('url' => rtrim(CIVICRM_UF_BASEURL, '/') . '/'); }) ->register('wp.frontend', function () use ($paths) { $config = \CRM_Core_Config::singleton(); @@ -67,7 +67,7 @@ public function __construct() { ); }) ->register('wp.backend.base', function () { - return array('url' => CIVICRM_UF_BASEURL . '/wp-admin/'); + return array('url' => rtrim(CIVICRM_UF_BASEURL, '/') . '/wp-admin/'); }) ->register('wp.backend', function () use ($paths) { return array(