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

CiviMail should not "url track" css urls in a link tag

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0, 2.1
    • Fix Version/s: 2.1
    • Component/s: CiviMail
    • Labels:
      None

      Description

      With HTML mailings, CiviMail is trying to replace stylesheet reference urls. For example,

      When I put the URL in my HTML code as this:

      <LINK REL=StyleSheet HREF="http://mysite.org/sites/all/themes/zen/cctv/layout.css" TYPE="text/css" MEDIA=screen>

      it turns it into this when the final email comes out:

      <LINK REL=StyleSheet href='http://mysite.org/sites/all/modules/civicrm/extern/url.php?u=188&qid=148' TYPE="text/css" MEDIA=screen>

      When running this url as a test: http://mysite.org/sites/all/modules/civicrm/extern/url.php?u=188&qid=148

      I do not get the stylsheet back; I get my drupal page not found and the URL turns into this:

      http://mysite.org/sites/all/modules/civicrm/extern/HREF=%22http://mysite.org/sites/all/themes/zen/cctv/layout.css%22

      Absolute urls work fine with other tags such as img src. It should allow absolute urls for stylesheet refs.

        Attachments

          Activity

            People

            • Assignee:
              shailesh Shailesh Lende
              Reporter:
              emilyefrazier Emily Frazier
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: