We have a dynamically generated multi-language email which will take the country and language combination of a subscriberkey and fetch the content from a data extension, everything is working fine, with the exception of adding in an alias without a concat function.
For example, I can pull a full URL with the below code:
%%=concat('<a href="',@cta_formatted,@adobeParams,'-',@alias,'" alias="',@alias,'" style="text-decoration: none;"><img src="',@image,'" alt="',@alt,'" border="0" width="480" style="height:auto;display: block;color:#ffffff;font-size: 16px;text-align: center;font-family:''Avenir'', Arial, sans serif;"></a>')=%%
However, if I try the following on a non-dynamic link
<a href="https://www.example.com" alias="%%=v(@alias)=%%" style="text-decoration: none;">
I get the following URL generated
https://example.com?cid=XXX-XXX-%7b%7b%40alias%7d%7d
I have tried the following workarounds:
- Using a TreatAsContent function, which results in %%%3dTreatAsContent(%27%7b%7b%40alias%7d%7d%27)%3d%%%27
- Using GTL to pull in the alias using {{@alias}} resulting in the same as above
- Using a concat on this static url, but this is not an option due to the way our tracking and mobile app integration (Concat links deep link through to the mobile app and tracking data is added on as part of the concat, non concat links need to open in a browser and not the app)
%%[ SET @cta_formatted = 'https://www.example.com/cta_formatted.html' SET @adobeParams = '?adobeParam1=va1' SET @alias = '&alias' SET @image = "http://placehold.it/600x400" SET @alt = 'altText' ]%% %%=concat('<a href="',@cta_formatted,@adobeParams,'-',@alias,'" alias="',@alias,'" style="text-decoration: none;"><img src="',@image,'" alt="',@alt,'" border="0" width="480" style="height:auto;display: block;color:#ffffff;font-size: 16px;text-align: center;font-family:''Avenir'', Arial, sans serif;"></a>')=%%