Skip to:
Content

BuddyPress.org

Changeset 12120


Ignore:
Timestamp:
05/24/2018 09:02:54 PM (2 years ago)
Author:
imath
Message:

Use the User messages URL path as the Backbone rooter root

This makes sure the Messages UI Backbone routes are found when WordPress is installed in a subdirectory.

Fixes #7865 (Branch 3.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/src/bp-templates/bp-nouveau/includes/messages/functions.php

    r12116 r12120  
    115115            'more' => __( '(and %d others)', 'buddypress' ),
    116116        ),
    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 ),
    118118    );
    119119
Note: See TracChangeset for help on using the changeset viewer.