Skip to:
Content

BuddyPress.org

Changeset 5415


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

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

Location:
trunk/bp-core
Files:
2 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                   
  • trunk/bp-core/bp-core-template.php

    r5394 r5415  
    238238
    239239function bp_search_form_action() {
    240     return apply_filters( 'bp_search_form_action', bp_get_root_domain() . '/' . bp_get_search_slug() );
     240    return apply_filters( 'bp_search_form_action', trailingslashit( bp_get_root_domain() . '/' . bp_get_search_slug() ) );
    241241}
    242242
Note: See TracChangeset for help on using the changeset viewer.