All of my users are associated to a group via LDAP and all of my groups are associated with a Space. I want users to be redirected to the Space page of their respective groups when they login, but I don't know what token or page I can use to do that.
I have seen some talk of using Actions / Triggers for redirects on login, but when I go to set up the redirect URL and click "Browse Available Tokens" the page crashes. Does anyone know what token I could use for this?
I've seen some similar solutions using custom PHP, but seeing as I am not a PHP developer I hesitate to go that route. If that is the only solution, how would it be implemented?
Lastly, in another issue post I saw that Mike Potter referenced using a token that would represent the hierarchy of a menu path (to the best of my recollection that's what he said). Would it be possible to use a menu and tokens to accomplish what I am doing?
Any help is greatly appreciated!
Comments
Comment #1
Argus CreditAttribution: Argus commentedIf a user can be a member of many Spaces (which is true in Open Atrium), from my knowledge Drupal cannot know which Space the current user needs to be redirected to. It would require a per user setting wouldn't it?
Comment #2
ivangrozni CreditAttribution: ivangrozni commentedThat was also a point of concern for me, but I wasn't sure how the associations between a user and group were formed and if it was just a list from which I could pull the first space and redirect to that and redirect to the home page if no membership exists.
Maybe that is just a conversation for a later release.
Comment #3
Argus CreditAttribution: Argus commentedThis seems a duplicate of #2071869: Change redirection user after login