HowTo: Working with contextual links to the panel

You can find an alternative less verbose solution here (can be adapted for Kirby 2 if needed):