Resolve url to the local url

Closes #134