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

Custom CSS URL not working if aliased or rewritten

    Details

    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      The Custom CSS URL is not working if this URL is defined as an Alias or going through a rewrite rule in the Apache configuration.

      For example, often people alias the /files URL to directory /sites/default/files on disk to have shorter and more readable URLs.

      This is due to the fact that the CRM_Utils_System_DrupalBase::formatResourceUrl function "optimizes" the URLs by rewriting them as included files so Drupal can aggregate CSS files. However it does not test whether the files exists in the file system before doing so.

        Attachments

          Activity

            People

            • Assignee:
              rohan1990 Rohan Ramesh Katkar
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - Not Specified
                Not Specified