TheDMSGroup / mautic-eb

Mautic + Elastic Beanstalk = Scalable marketing automation
https://www.mautic.org
GNU General Public License v3.0
105 stars 27 forks source link

email preference center and unsubscibe link have localhost domian #88

Closed zero-one-devteam closed 5 years ago

zero-one-devteam commented 5 years ago

What type of report is this:

Q A
Bug report? Question/Bug
Feature request?
Enhancement?

Description:

When sending emails, the {unsubscribe_url} gets replaced by http://localhost/email/unsubscribe/5c9a004a9d4e7568890675

APP_URL ist set properly: host.mydomain.com

In local.php I see: 'site_url' => 'host.mydomain.com',

I did not find any reference to localhost. On a single host Mautic installation the url is correct, so I assume it's related to and AWS EB setting ...

If a bug:

Q A
Mautic version 2.15.0
PHP version 7.2

Steps to reproduce:

  1. Sending email through a real campaign (no test email)
  2. Clicking on unsubscibe link
  3. Manual replacing localhost with real hostname works

Log errors:

zero-one-devteam commented 5 years ago

Was a cache problem. After cleaning prod cache, the links are correct.