I have a regular node in my main menu that:
- if an anonymous user clicks on it, the node should be shown regularly
- if a logged in user clicks on it, there should be a redirect to an external website
I tried
HOOK_menu_link_alter
but that only is invoked on edit-and-save (if menu item is created via web)
HOOK_node_view
that seems to work but does not seem like a good solution to load the complete node and check for the user just to redirect