modify url to path