systopia / CiviProxy

A security proxy for CiviCRM
GNU Affero General Public License v3.0
7 stars 18 forks source link

Issue #39: added mosacio compatibility for wordpress #53

Closed jaapjansma closed 2 years ago

jaapjansma commented 2 years ago

Before

When sending a mailing with CiviCRM (and Mosaico) the urls for the images are not changed to the civi proxy url. The url for mosaico images is https://your-site/civicrm/mosaico/img/?src= note the / after img

After

When sending a mailing with CiviCRM (and Mosaico) the urls for the images are changed to the civi proxy url.

Description

In wordpress the mosaico image url contains a / after img and before ?src=. The regex for searching for mosaico images did not cater for this.

bjendres commented 2 years ago

Thanks @jaapjansma