CRM-21082 CRM_Core_Resources::singleton()->getUrl sends Drupal paths to Backdrop install

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.23
    • Fix Version/s: 4.7.25
    • Component/s: Backdrop Integration
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      I installed the CiviCRM-Stripe extension and was testing it when I noticed that the Javascript file was not attaching correctly. It was trying to pull from a Drupal path (`/sites/default/files/...`) rather than a Backdrop path (`/files/...`). In inspecting the code, I see it is using this function to generate the URL:

      `CRM_Core_Resources::singleton()->getUrl`

      My Resource URLs on this site are set up using the portable tokens, so (for example), the "Extension Resource URL" is `[civicrm.files]/ext/`.

      The strange thing is that the Extension itself is found and installed in the same directory it should be trying to pull the Javascript file from.

        Attachments

          Activity

          [CRM-21082] CRM_Core_Resources::singleton()->getUrl sends Drupal paths to Backdrop install
          Laryn - CEDC.org added a comment - - edited

          PR here that solves it for me – let me know how it looks.

          EDIT: Updated PR
          https://github.com/civicrm/civicrm-core/pull/10884

            People

            • Assignee:
              Laryn - CEDC.org
              Reporter:
              Laryn - CEDC.org

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m