-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxied resources do not display in email client #80
Comments
Thanks for reporting. @pbatroff, does that ring a bell? |
Yeah, it looks like the proxy settings is not correct. could you please post the part with the path mappings? This is from the config.dist file: $target_rest = $target_civicrm . '/sites/all/modules/civicrm/extern/rest.php';
// base URL for api4 calls. Will append entity and action path segments
$target_rest4 = $target_civicrm . '/civicrm/ajax/api4/';
$target_file = $target_civicrm . '/sites/default/files/civicrm/persist/';
$target_mosaico = NULL; // (disabled by default): $target_civicrm . '/civicrm/mosaico/img?src=';
$target_mosaico_template_url = NULL; // (disabled by default): $target_civicrm . '/wp-content/uploads/civicrm/ext/uk.co.vedaconsulting.mosaico/packages/mosaico/templates/';
$target_mail_view = $target_civicrm . '/civicrm/mailing/view';
$target_url = $target_civicrm . '/civicrm/mailing/url';
$target_open = $target_civicrm . '/civicrm/mailing/open'; The important part is the target_mosaico part, that needs to be enabled. That might already help |
We had a similar issue under Drupal when the language part was embedded in the URL: In this case, the URLs for the images are not replaced correctly in the CRM_Civiproxy_Mailer. |
This is it:
|
I think this indicates that the matching is not working properly when the paths are replaced in the extension's mail hook. |
Thanks @MarcMichalsky, I didn't realize that Mailing.php was using something hardcoded rather than pulling from config.php. I submitted a PR #81 to fix the issue with the hardcoded values for now but the better option may be to make it use the paths defined in the config. |
Using CiviProxy with the current setup:
intranet site: intranet.com
proxy site: proxy.com
The text was updated successfully, but these errors were encountered: