Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/20/2023 03:07:17 AM (10 months ago)
Author:
imath
Message:

Do the homepage directory check only when the requested URL is home

Fixes #8939
See #4954
Closes https://github.com/buddypress/buddypress/pull/133

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-catchuri.php

    r13471 r13522  
    564564         */
    565565        if ( false !== $front_page_component && bp_is_current_component( $front_page_component ) && ! bp_current_action() && ! bp_get_current_member_type() ) {
    566             $bp->canonical_stack['canonical_url'] = bp_get_root_url();
     566            $bp->canonical_stack['canonical_url'] = trailingslashit( bp_get_root_url() );
    567567
    568568        // Except when the front page is set to the registration page
Note: See TracChangeset for help on using the changeset viewer.