Skip to:
Content

BuddyPress.org

Ticket #5211: 5211.01.patch

File 5211.01.patch, 827 bytes (added by r-a-y, 13 years ago)
  • bp-core/bp-core-catchuri.php

    function bp_get_canonical_url( $args = array() ) {  
    628628                $front_page_component = array_search( $page_on_front, bp_core_get_directory_page_ids() );
    629629
    630630                // If requesting the front page component directory, canonical
    631                 // URL is the front page
    632                 if ( false !== $front_page_component && is_page( $page_on_front ) ) {
     631                // URL is the front page (except on sitewide activity feed)
     632                if ( false !== $front_page_component && is_page( $page_on_front ) && ! bp_is_current_action( 'feed' ) ) {
    633633                        $bp->canonical_stack['canonical_url'] = trailingslashit( bp_get_root_domain() );
    634634
    635635                // Except when the front page is set to the registration page