The self snippet outputs the URL of the document that it's being called from.

Parameter Description
abs If set to 1 then an absolute URL is generated, defaults to 0.
secure If set to 1 and abs is also set to 1 then the created URL starts https, default is to use http.