fix broken url for wordpress in example code
authorMichael McAndrew <michaelmcandrew@thirdsectordesign.org>
Thu, 28 Jul 2022 23:54:30 +0000 (00:54 +0100)
committerMichael McAndrew <michaelmcandrew@thirdsectordesign.org>
Thu, 28 Jul 2022 23:54:30 +0000 (00:54 +0100)
CRM/Api4/Page/Api4Explorer.php

index b27a565a8045975d333d5107501118a3cf28ff6d..167db8777a4b8a6bf2d6176a746ca7327e51aac1 100644 (file)
@@ -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)