How to get site url in email template?????

gopi c asked on May 17, 2016 16:28

how to get the current site url in the email template like

<a href="{%RootDocument.AbsoluteURL#%}alumni/View-Campaign?m={%view%}">Please click on the link</a> 

i need to send the url to the user for inviting an event.

Recent Answers


Brenden Kehren answered on May 17, 2016 16:45

Is this not working? This will enter the URL that is currently entered in the Sites applicatin under domain name property. So if you currently have "localhost" in there, it will return "localhost". If you have www.domain.com, that is what it will return.

0 votesVote for this answer Mark as a Correct answer

Anton Grekhovodov answered on May 17, 2016 18:58

Try to use console in System application for checking your macro:

Image Text

0 votesVote for this answer Mark as a Correct answer

Jan Šedo answered on May 18, 2016 09:26 (last edited on May 18, 2016 09:26)

Alternatively you can use {%domain%} macro to get the current domain.

2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.