Dear all,

I would like to add a
use/login?destination=[current-page-path] menu item, but the item is not generated. The tokens work fine in different user contexts with anyauthenticated user. I don't seem to find any permissions settings that would allow to change that. Should this be a feature request or am I missing something?

Thx
John

Comments

mtcs’s picture

A simple workaround is to specify the entire URL (https://.../user/login?destination=[current-page-path]).

I guess the bug hides somewhere in function menu_token_translated_menu_link_alter().
Arguments from $item['link_path']) should be stripped before calling menu_get_item().

wickedwookie’s picture

Thanks for answering! I have since used rules for my workaround.

develcuy’s picture

Status: Active » Closed (works as designed)