fixed path resolution for getUrlPath