Hello,
There's a tracking domain that is connected to delivery server. Customers receive proper email with links that point to that domain, however after clicking on that link MailWizz redirects them to the DEFAULT domain instead of tracking one.
After digging a bit into MailWizz code I've ended with next conclusions:
CampaignsController::actionTrack_url($campaign_uid, $subscriber_uid, $hash) calls
CampaignHelper:
arseContent($destination, $campaign, $subscriber, false) to retrieve URL to redirect to. In turn, it calls self::getCommonTagsSearchReplace($content, $campaign, $subscriber) to replace [XYZ] template fields with correct ones. If we open that function we will see that it uses system absolute URLs to build the link:
$unsubscribeUrl = $options->get('system.urls.frontend_absolute_url') . 'lists/' . $list->list_uid . '/unsubscribe';
And this is the reason why it redirect to DEFAULT domain instead of a tracking one.
Question is how can I fix it in a proper way as I don't have much experience with Yii and don't want to break anything ESPECIALLY ability to upgrade without pain.
Thanks,
Jerry.
There's a tracking domain that is connected to delivery server. Customers receive proper email with links that point to that domain, however after clicking on that link MailWizz redirects them to the DEFAULT domain instead of tracking one.
After digging a bit into MailWizz code I've ended with next conclusions:
CampaignsController::actionTrack_url($campaign_uid, $subscriber_uid, $hash) calls
CampaignHelper:
![Stick Out Tongue :p :p](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)
$unsubscribeUrl = $options->get('system.urls.frontend_absolute_url') . 'lists/' . $list->list_uid . '/unsubscribe';
And this is the reason why it redirect to DEFAULT domain instead of a tracking one.
Question is how can I fix it in a proper way as I don't have much experience with Yii and don't want to break anything ESPECIALLY ability to upgrade without pain.
Thanks,
Jerry.