How do I get a document's live URL in a macro?

Bryan Drenner asked on February 20, 2014 13:35

How do I get a document's live URL in a macro?

Recent Answers


Brenden Kehren answered on February 20, 2014 14:31 (last edited on December 10, 2019 02:30)

{% CurrentDocument.NodeAliasPath |(identity)GlobalAdministrator%}

Will get you the current documents URL.

2 votesVote for this answer Mark as a Correct answer

answered on February 20, 2014 16:23 (last edited on December 10, 2019 02:30)

Brenden is correct, that macro will get the current document's NodeAliasPath perfectly. In case you want the full, absolute URL (including language prefixes if you are using them) you can use the following:

{%CurrentDocument.AbsoluteURL|(identity)GlobalAdministrator%}
8 votesVote for this answer Mark as a Correct answer

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