Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. 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

            People

            • Assignee:
              lpkb Laryn - CEDC.org
              Reporter:
              lpkb Laryn - CEDC.org
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              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