Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-14289

Don't use .js extension for dynamic resources

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.5
    • Component/s: None
    • Labels:
      None

      Description

      Hi,

      The latest version generates a: /civicrm/ajax/menujs/2/en_US/1/N9tbatM8.js

      On nginx, the default config (based on drupal) is to bypass all the .js (and .css...) and not run it through php.

      In this case, it doesn't work and as the file doesn't exist, nginx 404

      The easiest is to rename into /civicrm/ajax/menujs/2/en_US/1/N9tbatM8 (or anything without a .js)

      If this is a static file (I doubt so), can you put it into one of the normal places where civi puts them (upload....)?

      I'd rather avoid having to explain it needs changing nginx config as part of the upgrade procedure...

        Attachments

          Activity

            People

            • Assignee:
              xavier xavier dutoit
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: