Update current url in script