[buddypress-trac] [BuddyPress] #3176: Invalid URL routing for forum profile subnav item

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Jun 8 02:10:23 UTC 2011


#3176: Invalid URL routing for forum profile subnav item
-----------------------+--------------------------------------
  Reporter:  DJPaul    |      Owner:
      Type:  defect    |     Status:  reopened
  Priority:  critical  |  Milestone:  1.3
 Component:  Forums    |    Version:  1.3
Resolution:            |   Keywords:  needs-patch dev-feedback
-----------------------+--------------------------------------
Changes (by r-a-y):

 * keywords:  needs-patch => needs-patch dev-feedback
 * component:  Core => Forums


Comment:

 A potential solution involves checking the $bp_unfiltered_uri global in
 bp_forums_directory_forums_setup().

 eg.

 {{{
 function bp_forums_directory_forums_setup() {
         global $bp, $bp_unfiltered_uri;

         if ( bp_is_forums_component() && !isset( $bp_unfiltered_uri[1] )
 && ( !bp_current_action() || 'tag' == bp_current_action() ) &&
 !bp_current_item() ) {
                 ... the rest of the function ...
 }}}

 I'm using the $bp_unfiltered_uri check here because bp_is_directory()
 isn't available yet.

 Did not provide a patch because I'm not sure if the core devs like this
 approach.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3176#comment:6>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list