added auto building of current URL in URL API