NewPath takes into account http url.