From 43e0b5895370d129fd1b23e8577347c440f7d822 Mon Sep 17 00:00:00 2001 From: Xavier Dutoit Date: Sat, 1 Mar 2014 11:13:44 +0100 Subject: [PATCH] remove .js so it doesn't broke under nginx --- CRM/Core/Smarty/plugins/function.crmNavigationMenu.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Core/Smarty/plugins/function.crmNavigationMenu.php b/CRM/Core/Smarty/plugins/function.crmNavigationMenu.php index e38d8f0a34..822d0cbd92 100644 --- a/CRM/Core/Smarty/plugins/function.crmNavigationMenu.php +++ b/CRM/Core/Smarty/plugins/function.crmNavigationMenu.php @@ -58,12 +58,11 @@ function smarty_function_crmNavigationMenu($params, &$smarty) { if ($contactID) { // These params force the browser to refresh the js file when switching user, domain, or language // We don't put them as a query string because some browsers will refuse to cache a page with a ? in the url - // We end the string with .js to trick apache mods into sending pro-caching headers // @see CRM_Admin_Page_AJAX::getNavigationMenu $lang = $config->lcMessages; $domain = CRM_Core_Config::domainID(); $key = CRM_Core_BAO_Navigation::getCacheKey($contactID); - $src = CRM_Utils_System::url("civicrm/ajax/menujs/$contactID/$lang/$domain/$key.js"); + $src = CRM_Utils_System::url("civicrm/ajax/menujs/$contactID/$lang/$domain/$key"); return ''; } } -- 2.25.1