From: Michael McAndrew Date: Thu, 28 Jul 2022 23:54:30 +0000 (+0100) Subject: fix broken url for wordpress in example code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d960e6b2c25c710b4d1a6d394cce04b6f5ea6c76;p=civicrm-core.git fix broken url for wordpress in example code --- diff --git a/CRM/Api4/Page/Api4Explorer.php b/CRM/Api4/Page/Api4Explorer.php index b27a565a80..167db8777a 100644 --- a/CRM/Api4/Page/Api4Explorer.php +++ b/CRM/Api4/Page/Api4Explorer.php @@ -30,7 +30,7 @@ class CRM_Api4_Page_Api4Explorer extends CRM_Core_Page { 'docs' => \Civi\Api4\Utils\ReflectionUtils::parseDocBlock($apiDoc->getDocComment()), 'functions' => self::getSqlFunctions(), 'authxEnabled' => $extensions->isActiveModule('authx'), - 'restUrl' => rtrim(CRM_Utils_System::url('civicrm/ajax/api4/CRMAPI4ENTITY/CRMAPI4ACTION', NULL, TRUE, NULL, FALSE), '/'), + 'restUrl' => rtrim(CRM_Utils_System::url('civicrm/ajax/api4/CRMAPI4ENTITY/CRMAPI4ACTION', NULL, TRUE, NULL, FALSE, TRUE), '/'), ]; Civi::resources() ->addVars('api4', $vars)