Skip to:
Content
Pages
Categories
Search
Top
Bottom

Requesting fix for 'Search Redirection' problem with external codes

  • @towhidn

    Participant

    when another script is integrated with WordPress & BuddyPress and it uses ‘search’ keyword in URI BuddyPress automatically redirects it to WP’s homepage(in cases WP is in a directory).
    it happens in this file:
    \wp-content\plugins\buddypress\bp-core\bp-core-catchuri.php
    and this code is responsible for redirection:

        if ( !empty( $bp_uri[0] ) && ( bp_get_search_slug() == $bp_uri[0] ) ) {
            $matches[]   = 1;
            $match       = new stdClass;
            $match->key  = 'search';
            $match->slug = bp_get_search_slug();
        }

    when it’s a match with ‘search’ keyword it blindly redirects to homepage URL. it should check if the matches are a part of WP URL instead of domain URL.

    well that’s all. thanks

  • The topic ‘Requesting fix for 'Search Redirection' problem with external codes’ is closed to new replies.
Skip to toolbar