Resolve url to the local url.