hi
I had a look on documentation, but I don't have found what I am looking for. Is there a function to get the current url ?
If you mean the URL of the page being displayed then you can get it from the $_SERVER array. It is the REQUEST_URI item in the array.
$_SERVER
REQUEST_URI
thanks
REQUEST_URI gives the rewrited url ? ie : http://domaine.fr/news instead of http://domaine.fr/index.php?p=news
It gives the URL that was "submitted" by the browser. So it will be rewritten under normal circumstances.
We have also functions to get the url of the current item like getAlbumLinkURL(). For zenpage items there are also functions like getNewsURL() (see doc for the right name).
getAlbumLinkURL()
getNewsURL()