get the url from uri