Add in normal url routes for tracked opens and tracking urls to the mend urls function and also make use of the normal routes when quering the target civi
This commit is contained in:
parent
999345f4b5
commit
a88b621758
|
|
@ -53,7 +53,9 @@ class CRM_Civiproxy_Mailer {
|
||||||
$proxy_base = CRM_Core_BAO_Setting::getItem('CiviProxy Settings', 'proxy_url');
|
$proxy_base = CRM_Core_BAO_Setting::getItem('CiviProxy Settings', 'proxy_url');
|
||||||
|
|
||||||
// General external functions
|
// General external functions
|
||||||
|
$value = preg_replace("#{$system_base}civicrm/mailing/url#i", $proxy_base.'/url.php', $value);
|
||||||
$value = preg_replace("#{$system_base}sites/all/modules/civicrm/extern/url.php#i", $proxy_base.'/url.php', $value);
|
$value = preg_replace("#{$system_base}sites/all/modules/civicrm/extern/url.php#i", $proxy_base.'/url.php', $value);
|
||||||
|
$value = preg_replace("#{$system_base}civicrm/mailing/open#i", $proxy_base.'/open.php', $value);
|
||||||
$value = preg_replace("#{$system_base}sites/all/modules/civicrm/extern/open.php#i", $proxy_base.'/open.php', $value);
|
$value = preg_replace("#{$system_base}sites/all/modules/civicrm/extern/open.php#i", $proxy_base.'/open.php', $value);
|
||||||
$value = preg_replace("#{$system_base}sites/default/files/civicrm/persist/#i", $proxy_base.'/file.php?id=', $value);
|
$value = preg_replace("#{$system_base}sites/default/files/civicrm/persist/#i", $proxy_base.'/file.php?id=', $value);
|
||||||
$value = preg_replace("#{$system_base}civicrm/mosaico/img\?src=#i", $proxy_base.'/mosaico.php?id=', $value);
|
$value = preg_replace("#{$system_base}civicrm/mosaico/img\?src=#i", $proxy_base.'/mosaico.php?id=', $value);
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,8 @@ $target_civicrm = 'https://your.civicrm.installation.org';
|
||||||
|
|
||||||
// default paths, override if you want. Set to NULL to disable
|
// default paths, override if you want. Set to NULL to disable
|
||||||
$target_rest = $target_civicrm . '/sites/all/modules/civicrm/extern/rest.php';
|
$target_rest = $target_civicrm . '/sites/all/modules/civicrm/extern/rest.php';
|
||||||
$target_url = $target_civicrm . '/sites/all/modules/civicrm/extern/url.php';
|
$target_url = $target_civicrm . '/civicrm/mailing/url';
|
||||||
$target_open = $target_civicrm . '/sites/all/modules/civicrm/extern/open.php';
|
$target_open = $target_civicrm . '/civicrm/mailing/open';
|
||||||
$target_file = $target_civicrm . '/sites/default/files/civicrm/persist/';
|
$target_file = $target_civicrm . '/sites/default/files/civicrm/persist/';
|
||||||
$target_mosaico = NULL; // (disabled by default): $target_civicrm . '/civicrm/mosaico/img?src=';
|
$target_mosaico = NULL; // (disabled by default): $target_civicrm . '/civicrm/mosaico/img?src=';
|
||||||
$target_mail_view = $target_civicrm . '/civicrm/mailing/view';
|
$target_mail_view = $target_civicrm . '/civicrm/mailing/view';
|
||||||
|
|
@ -155,4 +155,4 @@ $_webhook2api = [
|
||||||
"parameter_sanitation" => [],
|
"parameter_sanitation" => [],
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue