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

resource url with a different domain doesn't work

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5
    • Fix Version/s: 2.2.6
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      It looks like in 2.2 an attempt was made to shorten urls by removing the domain of the CiviCRM Resource URL.

      This means you can no longer use a static file server for your images/css.

      One solution is to change CRM/Core/Config.php like this:

      < $this->resourceBase = $rrb['path'];

      > $this->resourceBase = ($rrb['host'] == $_SERVER['HTTP_HOST']) ? $rrb['path'] : $this->userFrameworkResourceURL;

      Although I'm not sure that it'll work for javascript.

        Attachments

          Activity

            People

            • Assignee:
              shailesh Shailesh Lende
              Reporter:
              adixon Alan Dixon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: