Skip to:
Content

bbPress.org

Opened 8 years ago

Closed 8 years ago

#2160 closed defect (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() ) {

Change History (2)

#1 @johnjamesjacoby
8 years ago

  • Milestone changed from Awaiting Review to 2.3

Confirmed. Fix incoming.

#2 @johnjamesjacoby
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4715]) In favorite/subscription handlers, default redirect to get_permalink( $topic_id ) if no other match is found. Fixes #2160.

Note: See TracTickets for help on using tickets.