I just couldn't find the way how to get the complete URL of a current page via Velocity template language of Apache Roller.
So far I tried:
$url.absoluteSite
- this gives the TLD of the site, but no path.$url.site
- gives me nothing (probably due to the Tomcat's virtual host set-up)
I tried some other combinations of various methods given by the Roller Template guide, but none of them yield any results.
I am not sure if Roller comes with Velocity tool installed, I tried some examples from StackOverflow, related to LinkTool but it seemed that it doesn't work.
Well, this is it in short - all I need is a line of Velocity code that gets the current full URL in Roller.
Thanks a lot folks!