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

CiviMail generates bad URLs if CiviCRM Resource URL is relative

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      Mentioned at http://forum.civicrm.org/index.php/topic,3093.0.html

      In ?q=civicrm/admin/setting/url the docs for CiviCRM Resource URL say "Absolute or Relative URL". However, if this is a relative URL (which I prefer, so I can switch test servers without having to update config settings in DB) then the generated clicktrack URLs in the email will be of the form http://path/to/file

      Eg, if the CiviCRM Resource URL is set to /drupal/sites/all/modules/civicrm/, a clicktrack URL in the email is generated as <a href="/drupal/sites/all/modules/civicrm/extern/url.php?u=2&qid=15"> which won't work in the recipient's email.

      I think that CiviCRM should correctly handle relative resource URLs by calculating the correct absolute URL in this case.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              xurizaemon Chris Burgess
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: