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

{% CurrentDocument.NodeAliasPath %}

Will get you the current documents URL.

0 votesVote for this answer Mark as a Correct answer

answered on February 20, 2014 16:23

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%}
4 votesVote for this answer Mark as a Correct answer

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