Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/29/2011 10:18:26 PM (13 years ago)
Author:
boonebgorges
Message:

Ensures links are constructed with trailing slash in forums and friends components. See #3779

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-screens.php

    r5302 r5416  
    3030            bp_core_add_message( __( 'Friendship could not be accepted', 'buddypress' ), 'error' );
    3131
    32         bp_core_redirect( bp_loggedin_user_domain() . bp_current_component() . '/' . bp_current_action() );
     32        bp_core_redirect( trailingslashit( bp_loggedin_user_domain() . bp_current_component() . '/' . bp_current_action() ) );
    3333
    3434    } elseif ( bp_is_action_variable( 'reject', 0 ) && is_numeric( bp_action_variable( 1 ) ) ) {
     
    4141            bp_core_add_message( __( 'Friendship could not be rejected', 'buddypress' ), 'error' );
    4242
    43         bp_core_redirect( bp_loggedin_user_domain() . bp_current_component() . '/' . bp_current_action() );
     43        bp_core_redirect( trailingslashit( bp_loggedin_user_domain() . bp_current_component() . '/' . bp_current_action() ) );
    4444    }
    4545
Note: See TracChangeset for help on using the changeset viewer.