Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Before 6.x-1.4 it was possible to easily construct masquerade links. The security fix broke the existing links.
That's fine by me (should have been mentioned in release notes), but how am I now supposed to construct masquerade links outside of menus, given that the token-inserting functionality is tied to menu_link_alter hooks? I suppose I can replicate the implementation in my code, but it would be nicer if some sort of API was provided that the module's user could rely on to create a secure masquerade/switch-back link.
Comments
Comment #1
deekayen CreditAttribution: deekayen commentedThe old way is what the security team identified as the security problem. Not sure there's anything to do about it.
Comment #2
deviantintegral CreditAttribution: deviantintegral commentedI'm not totally against having a wrapper function to generate the link. However, I would think that there are menu API calls you could make to do it properly.