sonata media: add IdPrefix listener to set the basepath