The current URL
HTML only
Url
<xt:url />
http://syntax.xtgem.com/manual/xtgem/default?func=xt_url
Path
<xt:url type="path" />
/manual/xtgem/default
Domain
<xt:url type="domain" />
syntax.xtgem.com
Noquery
<xt:url noquery="1" />
http://syntax.xtgem.com/manual/xtgem/default
Urlencode
<xt:url urlencode="1" />
http%3A%2F%2Fsyntax.xtgem.com%2Fmanual%2Fxtgem%2Fdefault%3Ffunc%3Dxt_url
Multiple filters
<xt:url noquery="1" urlencode="1"/>
http%3A%2F%2Fsyntax.xtgem.com%2Fmanual%2Fxtgem%2Fdefault
<xt:url type="path" noquery="1" urlencode="1" />
%2Fmanual%2Fxtgem%2Fdefault
Canonical
There is a special canonical version of this function
<xt:canonical_uri />
This ONLY returns output when
A forum is on the page (broken if no category or forum post is open)
A blog POST is open
This version is not available in xtscript