fix url to path