remove .js so it doesn't broke under nginx
authorXavier Dutoit <xavier@tttp.eu>
Sat, 1 Mar 2014 10:13:44 +0000 (11:13 +0100)
committerXavier Dutoit <xavier@tttp.eu>
Sat, 1 Mar 2014 10:13:44 +0000 (11:13 +0100)
CRM/Core/Smarty/plugins/function.crmNavigationMenu.php

index e38d8f0a34b50ba3962b75d045d7d1bd87e4a015..822d0cbd92eb0a3dcb3dca29b4792a4909ae4163 100644 (file)
@@ -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 '<script type="text/javascript" src="' . $src . '"></script>';
     }
   }