Skip to:
Content

BuddyPress.org

Changeset 7437

Timestamp:
10/17/2013 04:04:41 PM (11 years ago)
Author:
boonebgorges
Message:

Canonical URL detection should be sensitive to page_on_front

When a BP directory is set to page_on_front, it should no longer be accessible
at the regular directory URL (to avoid duplicate URLs for the same content).

A special exception is required for the Register page. Because BP blocks access
to Register for logged-in users, the canonical redirect for Register when
viewed by a logged-in user must be something other than the front page. As in
bp_core_screen_signup(), we use the Members directory in this case (a page we
can be reasonably sure will always be present).

Fixes #5199

File:
1 edited

Legend:

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

    r7291 r7437  
    622622    extract( $r );
    623623
     624
     625
     626
     627
     628
     629
     630
     631
     632
     633
     634
     635
     636
     637
     638
     639
     640
     641
     642
    624643    if ( empty( $bp->canonical_stack['canonical_url'] ) ) {
    625644        // Build the URL in the address bar
Note: See TracChangeset for help on using the changeset viewer.