[buddypress-trac] [BuddyPress] #903: user anv gets wrong path for visitors in trunk

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Aug 2 09:31:59 UTC 2009


#903: user anv gets wrong path for visitors in trunk
-----------------------+----------------------------------------------------
Reporter:  mariusooms  |       Owner:       
    Type:  defect      |      Status:  new  
Priority:  major       |   Milestone:  1.0.4
Keywords:  navigation  |  
-----------------------+----------------------------------------------------

Comment(by mariusooms):

 No....not an empty loggedin_user->domain...I'm including the
 displayed_user->domain so that the path gets set correctly when the user
 is not a loggedin_user->domain as per the condition. So the complete
 conditional would be:

 {{{
 if ( $bp->loggedin_user->domain )
   $link = str_replace( $bp->loggedin_user->domain,
 $bp->displayed_user->domain, $user_nav_item['link'] );
 else
 $link = $bp->displayed_user->domain . $user_nav_item['link'];
 }}}
 So you see...the user_nav_item['link'] by itself if the viewing user is
 not logged in does not suffice for the complete path. The
 displayed_user->domain makes sure the path is consistent for all paths and
 tags on the user_nav_item.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/903#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list