You are right, we should somehow listen to the permalink in the context menu. Any example how to do that ?