systopia / CiviProxy

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

Show Email in Browser not working with CiviProxy #27

Closed pbatroff closed 4 years ago

pbatroff commented 6 years ago

When sending a newsletter with CiviProxy, the option to view Email in Browser isn't working properly. the Images in the mail wont be shown, and ultimately end up in a timeout.

The generated Links from the Proxy Code generate faulty links:

https://__CRM-URL__https://__GATE-URL__/mosaico.php?id=https%3A%2F%2F__CRM-URL-%2Fsites%2Fdefault%2Ffiles%2Fcivicrm%2Fpersist%2Fcontribute%2Fimages%2Fuploads%__IMAGE__.png&method=resize&params=570%2Cnull

The Regular Expression for generating the correct link doesn't seem to work

pbatroff commented 6 years ago

See HBS-7391 internal

pbatroff commented 5 years ago

Verified. This should get merged to Master. (tested with 0.5)