Currently, if you create a link to masquerade's unswitch path through the menu admin interface, it'll appear to work, but fails when you try to use it. This is because the menu link item that's created doesn't have the alter option set on it, which allows the CSRF token to be added at runtime.

I've created a patch which will set this option when links to the unswitch path are created, which allows them to work as intended.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rupertj’s picture

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

I've been using this.

izmeez’s picture

This patch looks good RTBC +1

izmeez’s picture