It seems wrong that path_prefix="/foo" matches /foobar, and it isn't difficult or expensive to check.