Opened 12 years ago
Closed 12 years ago
#2160 closed defect (bug) (fixed)
Wrong redirect on subscribe and favorite in buddypress group forum
Reported by: | lakrisgubben | Owned by: | |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.2.3 |
Component: | Extend - BuddyPress | Keywords: | |
Cc: |
Description
When clicking "subscribe" or "favorite" in a buddypress group forum (with bbpress 2.2.3 but the problem seems to be in trunk as well) the user is redirected to the group root (/groups) instead of the topic one was at. As far as I can tell this has to do with the functions bbp_subscriptions_handler and bbp_favorites_handler. Don't know if the following is the best way to fix it, but it seems to work at least:
Change line http://bbpress.trac.wordpress.org/browser/trunk/includes/users/functions.php#L811 and line http://bbpress.trac.wordpress.org/browser/trunk/includes/users/functions.php#L495 to
} elseif ( bbp_is_single_topic() || bbp_is_single_reply() || bp_is_group() ) {
Confirmed. Fix incoming.