WordPress.org

Ready to get started?Download WordPress

Forums

Nice Search
Redirects to home after doing a search with no results (3 posts)

  1. gordoyuri
    Member
    Posted 2 years ago #

    It does the redirect ok but shows no results. It goes to the home page (shows last posts like if no search was done) without any params.

    127.0.0.1 - - [24/Jan/2012:00:41:53 -0200] "GET /?s=test HTTP/1.1" 302 -
    127.0.0.1 - - [24/Jan/2012:00:41:54 -0200] "GET /search/test HTTP/1.1" 302 -
    127.0.0.1 - - [24/Jan/2012:00:41:54 -0200] "GET / HTTP/1.1" 200 8669

    It seems that the problem is with buddypress. Any one have any idea how to fix this?

    http://wordpress.org/extend/plugins/nice-search/

  2. lukewarmmizer
    Member
    Posted 2 years ago #

    I was able to work around this by defining the BP_SEARCH_SLUG in my wp-config.php file (it didn't work in functions.php, maybe loaded too late?).

    define('BP_SEARCH_SLUG', 'bpsearch');

    In bp-loader.php it checks to see if it is already defined - overriding it means that the pattern matching doesn't work and buddypress won't take the search slug for itself.

    // The search slug has to be defined nice and early because of the way search requests are loaded
    if ( !defined( 'BP_SEARCH_SLUG' ) )
     	define( 'BP_SEARCH_SLUG', 'search' );
  3. cthouse
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic