How do I create a link that redirects to a destination after completing an action? I'm trying to create login/logout options for menus that are parts of groups on my page. The thing is I want each menu to have that login/logout select redirect the user to the group page, not the user profiles. How would I go about setting this up in the path setting of the menu?
Have a look at the Login Destination module.  From the project page:


  The Login Destination module allows you to customize the destination that a user is redirected to after logging in, registering to the site (7.x), using a one-time login link or logging out (7.x). The destination can be an internal page or an external URL. It is possible to specify certain conditions like referring pages or user roles and make the destination depend upon them. You may use PHP snippets to provide custom conditions and destinations. It is also possible to keep users on the currently visited page after logging in or out.