get rid of the redundant path prefix