Fix url with pathname