Skip to:
Content

BuddyPress.org

Changeset 6651


Ignore:
Timestamp:
12/18/2012 01:23:49 AM (11 years ago)
Author:
boonebgorges
Message:

When redirecting away from a private group, append 'home/' to the redirect URL

This helps to avoid a redirect loop when the default extension for groups is
set to something other than the default, because the 'home' tab of private
groups is an always-accessible landing page for the "This is a private group"
message.

Fixes #4706

Props DennisSmolek

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-loader.php

    r6622 r6651  
    272272                        bp_core_no_access( array(
    273273                            'message'  => __( 'You do not have access to this group.', 'buddypress' ),
    274                             'root'     => bp_get_group_permalink( $bp->groups->current_group ),
     274                            'root'     => bp_get_group_permalink( $bp->groups->current_group ) . 'home/',
    275275                            'redirect' => false
    276276                        ) );
Note: See TracChangeset for help on using the changeset viewer.