Do you want to get the current URL data of and page using Smarty. Here is the way to do that.
Retrieve the primary URL or the host (Eg. localhost)
Retrive the rest of the URL or the URI (Eg. /site/index.php?id=4541&sn=4565)
So you can make the complete URL like this.