From: Tim Otten Date: Wed, 3 Sep 2014 04:39:47 +0000 (-0700) Subject: CRM-14973 - CRM_Core_Menu::buildAdminLinks - Force backend URLs X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f4bdec6a7429a951686b33bf15fdbb2bcffb1afa;p=civicrm-core.git CRM-14973 - CRM_Core_Menu::buildAdminLinks - Force backend URLs ---------------------------------------- * CRM-14973: Administration console does not work in WordPress https://issues.civicrm.org/jira/browse/CRM-14973 --- diff --git a/CRM/Core/Menu.php b/CRM/Core/Menu.php index a18006f062..0cb7b29965 100644 --- a/CRM/Core/Menu.php +++ b/CRM/Core/Menu.php @@ -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), );