boonebgorges/buddypress-group-email-subscription — pull request #34 by r-a-y (2012-12-05 19:06:23+00:00)
Title: Change view link in group forum emails to use wp-login.php

Hi Boone,

In a GES email, if a group is hidden and a user clicks on the hidden forum thread link, currently the user will get a 404.

In this pull request, I've changed the primary link in group forum emails to use wp-login.php. The forum thread link is added to the `redirect_to` parameter. This is only done for groups that are not public.

Now, If a user clicks on this wp-login.php link and is already logged in, we redirect the user to the authorized content instead of forcing the user to re-authenticate. This is done with the new function - `ass_login_redirector()`.

---

Disregard the three other commits, the commit you should look at cherry-picking is c382771.

Let me know what you think of this approach.