Fix publicaton filtering by type to work with vsite urls

#1906