I hope with my title I correctly show what it is I am looking for 
Anyway, I have this: {PHP.pag.page_id|cot_url('page','id=$this')} to create an url of the curent page I am viewing. However, Sienna uses a different link.
For example for xx page the url looks like this: index.php?e=page&c=news&al=My-second-newspost
With {PHP.pag.page_id|cot_url('page','id=$this')} the url returned is index.php?e=page&id=3
The page_id is correct, but the url is not the same as how it was first displayed ( index.php?e=page&c=news&al=My-second-newspost )
I would like to use that global tag to recreate the url but so far I have not really been lucky (lucky literally cause I am not really sure about what I am doing).
I have tried many different versions of this: {PHP.pag.page_id|cot_url('page','c=$pag_cat','al=$pag_alias')} but that creates weird urls like this: index.php?e=page&c=%24pag_catal=$pag_alias
Anyone has an idea how to adjust the global tag so the proper url is returned?
In case anyone wonders, I need this so when i click "go to top" the browser knows I want to stay on the same page (url is equal) and so a nice scoller effect is used to go to the top instead of reloading the page to the top.
I use the scoller from symisun-03 but that one does also not work correctly, cause it uses that global tag to re-create the url which is wrong. So first it reloads the page to index.php?e=page&id=3 and than if you click the "go to top" link the scoller comes into affect cause a link on the same page is activated (you are on index.php?e=page&id=3 and the global tag recreates exactly that).
I hope the above is clear.........a bit. If anyone knows how to do this I would appreciate a little assistance.
[add on]
{PAGE_URL} does not work in the footer (where the "go to top" is), thats why i am using this global tag.
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />