From d960e6b2c25c710b4d1a6d394cce04b6f5ea6c76 Mon Sep 17 00:00:00 2001 From: Michael McAndrew Date: Fri, 29 Jul 2022 00:54:30 +0100 Subject: [PATCH] fix broken url for wordpress in example code --- CRM/Api4/Page/Api4Explorer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1