getCurrentUrl function

Retrieve the URL of the current page.