Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/29/2011 09:53:44 PM (15 years ago)
Author:
boonebgorges
Message:

Ensures links are constructed with trailing slash in blogs and core component. See #3779

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-buddybar.php

    r5412 r5415  
    4040                'name'                    => $name,
    4141                'slug'                    => $slug,
    42                 'link'                    => $bp->loggedin_user->domain . $slug . '/',
     42                'link'                    => trailingslashit( $bp->loggedin_user->domain . $slug ),
    4343                'css_id'                  => $item_css_id,
    4444                'show_for_displayed_user' => $show_for_displayed_user,
     
    248248                                        // a non-public tab, like 'messages'
    249249                                        if ( bp_is_active( 'activity' ) && isset( $bp->pages->activity ) ) {
    250                                                 $redirect_to = bp_displayed_user_domain() . bp_get_activity_slug();
     250                                                $redirect_to = trailingslashit( bp_displayed_user_domain() . bp_get_activity_slug() );
    251251                                        } else {
    252                                                 $redirect_to = bp_displayed_user_domain() . ( 'xprofile' == $bp->profile->id ? 'profile' : $bp->profile->id );
     252                                                $redirect_to = trailingslashit( bp_displayed_user_domain() . ( 'xprofile' == $bp->profile->id ? 'profile' : $bp->profile->id ) );
    253253                                        }
    254254                                       
Note: See TracChangeset for help on using the changeset viewer.