Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3968 closed defect (bug) (no action required)

Post Search doesnt work when register page is set to homepage

Reported by: tislam100 Owned by:
Priority: normal Milestone:
Component: Core Version: 1.5.3
Severity: normal Keywords:
Cc:

Description

The Post Search function is not working when register page is set to homepage.

Go to Settings> Reading and set the "Register Page" as custom front page and then try to search posts using the default search form and it takes you back to home page.

The members/groups search works fine though.
Tested with Buddypress 1.5.3 and Wordpress Version 3.3.1
Using the default buddypress theme.

Change History (6)

#1 @tislam100
15 years ago

  • Resolutioninvalid
  • Status newclosed

#2 @tislam100
15 years ago

Tested this just now again with a default Buddypress/wordpress installation. The BUG exist.

Last edited 15 years ago by tislam100 (previous) (diff)

#3 @tislam100
15 years ago

  • Resolution invalid
  • Status closedreopened

#4 @tislam100
15 years ago

Possible fix:
Replace this line in the search form:

<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">

with this:

<form role="search" method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">

#5 @DJPaul
15 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status reopenedclosed

This works for me when I set the "Post page" to something on the same form. Without it set, I saw the behaviour you described.

#6 @tislam100
15 years ago

hmm... So if we set a register page as homepage, we will have to set the post page too, even if I don't want to?

Note: See TracTickets for help on using tickets.