Fixed currentUrl() arguments
Shorter code