#5199 closed defect (bug) (fixed)
Setting register page as static front page results in duplicate content
Reported by: | henrywright | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 1.9 | Priority: | normal |
Severity: | normal | Version: | 1.8.1 |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
Setting the BuddyPress registration page as the static front page in WordPress admin results in a duplicate page accessible by both of the following URLs:
example.com/ example.com/register
I'm 95% sure this is unexpected behaviour.
When, for example, the "About" page is set as the static front page - visiting example.com/about
will redirect to example.com
- hence avoiding duplicated content.
Attachments (2)
Change History (11)
#2
@
11 years ago
Hi Boone
I've tested this on a fresh install, 2013 theme and it works well. I did have an issue when I tested on a site with a customised theme and custom functions.php. I was getting a redirect loop on every login attempt. Adding the following hook solved that problem - just thought that was worth mentioning.
function bp_redirect_to_profile() { global $bp; if ( is_user_logged_in() && ( is_front_page() ) ) { wp_redirect( $bp->loggedin_user->domain ); exit(); } } add_action('wp','bp_redirect_to_profile');
#3
@
11 years ago
henrywright - Just to be clear, when you were having the problem with the customized theme, was your front page set to Register? That'd explain the issue, because logged-in users are redirected away from the Register page by default.
#5
@
11 years ago
Thanks for the feedback, henrywright. Would you mind testing 5199.02.patch, which I believe should cover the special case of the register page?
#6
@
11 years ago
Just gave 5199.02.patch a run through and it works perfectly in all situations I've mentioned above. :)
Yes, this is unexpected, and it appears that it's the case with all of the component directory pages (Activity, Groups, etc). I think that the right fix is something like 5199.patch, but I would like to get a sanity check from someone else.