Added method to convert path to url path