Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#3169 closed defect (bug) (fixed)

Subnav link when viewing a private message incorrect

Reported by: djpaul's profile DJPaul Owned by:
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Messages Keywords:
Cc:

Description

When viewing a private message, e.g. http://example.com/members/admin/messages/view/20/, a new item is added to the subnav which takes the format of "From: (last respondent)" which acts as a permalink to the current message.

The text of that subnav item is not in bold; it should be, to show the user which page they are on. The problem is that the subnav item is added late in messages_action_view_message(), with a slug of "view/ID." The bp_get_options_nav() function marks the current page's subnav item as bold, it does this by comparing the slug ("view/ID") with $bp->current_action ("view"). These are different so nothing is bolded.

If the slug argument to bp_core_new_subnav_item() in messages_action_view_message() is changed to "view", the bold is applied fine but then the link to the item is wrong; it takes you back to /members/admin/messages/view/. This causes a redirect back to the inbox.

Change History (1)

#1 @djpaul
14 years ago

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

(In [4240]) Fix subnav link and highlighting when viewing a private message. Fixes #3169

Note: See TracTickets for help on using tickets.