diff --git a/civicrm/CRM/Mailing/BAO/TrackableURL.php b/civicrm/CRM/Mailing/BAO/TrackableURL.php index 87d02927797c29c68c4c5ff901018c54e6f75511..759c1053a8caee2441769e0ea8693b9b154f3255 100644 --- a/civicrm/CRM/Mailing/BAO/TrackableURL.php +++ b/civicrm/CRM/Mailing/BAO/TrackableURL.php @@ -73,7 +73,6 @@ class CRM_Mailing_BAO_TrackableURL extends CRM_Mailing_DAO_TrackableURL { else { $hrefExists = FALSE; - $config = CRM_Core_Config::singleton(); $tracker = new CRM_Mailing_BAO_TrackableURL(); if (preg_match('/^href/i', $url)) { @@ -89,7 +88,7 @@ class CRM_Mailing_BAO_TrackableURL extends CRM_Mailing_DAO_TrackableURL { } $id = $tracker->id; - $redirect = $config->userFrameworkResourceURL . "extern/url.php?u=$id"; + $redirect = CRM_Utils_System::externUrl('extern/url', "u=$id"); $urlCache[$mailing_id . $url] = $redirect; }