Some improvements imported from IVIS (https://github.com/smartarch/ivis-core/tree/devel)
Builtin Zone-MTA upgraded Bug fix - URLs in campaign would not work if they contained non-ASCII character
This commit is contained in:
parent
65d3aed29d
commit
82251d1cb9
6 changed files with 217 additions and 43 deletions
|
@ -173,7 +173,7 @@ async function updateLinks(source, tagLanguage, mergeTags, campaign, list, subsc
|
|||
const urls = new Map(); // url -> {id, cid} (as returned by add)
|
||||
for (const url of urlsToBeReplaced) {
|
||||
// url might include variables, need to rewrite those just as we do with message content
|
||||
const expanedUrl = tools.formatCampaignTemplate(url, tagLanguage, mergeTags, false, campaign, list, subscription);
|
||||
const expanedUrl = encodeURI(tools.formatCampaignTemplate(url, tagLanguage, mergeTags, false, campaign, list, subscription));
|
||||
const link = await addOrGet(campaign.id, expanedUrl);
|
||||
urls.set(url, link);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue