safer default for pathPrefix.