N
Novu2w ago
Ashutosh

Need help! Environment specific url

I have a primary CTA in an email template, and I’m constructing the URL within the template itself using payload data. The issue is that since we’re using the same template in production, we need different URLs for different environments. For example: In QA, the CTA URL should be: https://qa.abc.app/someid1/someid2 In Production, the CTA URL should be: https://abc.app/someid1/someid2 Is there a way to dynamically set this URL based on the environment within the template itself?
8 Replies
Pawan Jain
Pawan Jain2w ago
@Ashutosh Did you try sending complete url in payload variables
Ashutosh
AshutoshOP2w ago
no we are not sending complete url instead we are creating the url in template itself from payload data , let's say here someId1 and someId2 are present in payload and we are constructing it as https://qa.abc.app/someid1/someid2
Pawan Jain
Pawan Jain2w ago
Thanks,

is there any issue in building this url on your end and sending comlete url in payload variable?
Ashutosh
AshutoshOP2w ago
no there isn't but if Novu itself provide it then that would be great
Novu_Bot
Novu_Bot2w ago
@Ashutosh, you just advanced to level 1!
Ashutosh
AshutoshOP2w ago
Hi, it's urgent/blocker for us , let me know can we have condition based on environment or not.
Pawan Jain
Pawan Jain2w ago
Ashutosh,

This is something we don't support as of now, I am still not able to understand what's the issue with sending complete url in payload variable instead?
Ashutosh
AshutoshOP2w ago
Okay thanks, we will go with sending complete url.

Did you find this page helpful?