CRM-14973 - CRM_Core_Menu::buildAdminLinks - Force backend URLs
authorTim Otten <totten@civicrm.org>
Wed, 3 Sep 2014 04:39:47 +0000 (21:39 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 3 Sep 2014 05:16:21 +0000 (22:16 -0700)
----------------------------------------
* CRM-14973: Administration console does not work in WordPress
  https://issues.civicrm.org/jira/browse/CRM-14973

CRM/Core/Menu.php

index a18006f062f76d5d067fbbbec5a8a5f61b0f5b56..0cb7b299655bc5f632f15a7058a7f85d5221d246 100644 (file)
@@ -285,7 +285,13 @@ class CRM_Core_Menu {
             ',' => '_', '/' => '_',
           )
         ),
-        'url' => CRM_Utils_System::url($path, $query, FALSE),
+        'url' => CRM_Utils_System::url($path, $query, 
+            FALSE, // absolute
+            NULL, // fragment
+            TRUE, // htmlize
+            FALSE, // frontend
+            TRUE // forceBackend; CRM-14439 work-around; acceptable for now because we don't display breadcrumbs on frontend
+        ),
         'icon' => CRM_Utils_Array::value('icon', $item),
         'extra' => CRM_Utils_Array::value('extra', $item),
       );