Added debug flag support to currentUrl()