systopia / CiviProxy

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

Social icons in view in browser #38

Open pbatroff opened 4 years ago

pbatroff commented 4 years ago

Social Icons in the versafix template use relative paths, thus the replacement on the proxy to view the mailing doesn't work. Example URL:

/sites/default/files/civicrm/persist/mosaico_tpl/versafix-1.1/img/icons/fb-colors-96.png

This then wont be replaced in the proxy civiproxy_mend_URLs, then having an invalid URL. An additional regex fix should fix the problem for the $target_file replacement.

pbatroff commented 4 years ago

Alternatively a page hook could be used in the civiproxy extension on civi side to change the links.

pbatroff commented 4 years ago

I created an issue with the mosaico extension here, ideally this should be fixed in there.

jaapjansma commented 2 years ago

I have difficulties with replacing social media icons from the versafix template. The instance is CiviCRM 5.30.1 on Wordpress and Mosaico 2.5.1597918155

I see that the templates have an absolute url.