diff --git src/bp-templates/bp-nouveau/includes/messages/functions.php src/bp-templates/bp-nouveau/includes/messages/functions.php
index 97c1b09f7..a5957daf1 100644
|
|
function bp_nouveau_messages_localize_scripts( $params = array() ) { |
114 | 114 | 'one' => __( '(and 1 other)', 'buddypress' ), |
115 | 115 | 'more' => __( '(and %d others)', 'buddypress' ), |
116 | 116 | ), |
117 | | 'rootUrl' => trailingslashit( str_replace( home_url(), '', bp_displayed_user_domain() ) . bp_get_messages_slug() ), |
| 117 | 'rootUrl' => parse_url( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() ), PHP_URL_PATH ), |
118 | 118 | ); |
119 | 119 | |
120 | 120 | // Star private messages. |