Initial or final slashes in urlPath don't mess up path