Fix publish/subscribe for id-based route