From 66908b142f20e15ae402e89a2bf2242eebdeac32 Mon Sep 17 00:00:00 2001 From: Andrei Mondoc <andreimondoc@gmail.com> Date: Fri, 11 Oct 2019 12:09:19 +0200 Subject: [PATCH] cache the hooked url value Signed-off-by: Kevin Cristiano <kcristiano@kcristiano.com> --- civicrm/CRM/Mailing/BAO/TrackableURL.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/civicrm/CRM/Mailing/BAO/TrackableURL.php b/civicrm/CRM/Mailing/BAO/TrackableURL.php index 87d0292779..759c1053a8 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; } -- GitLab