• Resolved bhaveshpawar

    (@bhaveshpawar)


    Whenever clicking on any result shown from the suggestions , wrong link is opened for the post. The link which is opened /uncategorized/48531-autosave-v1/ , while 48531 is the post id.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Konstantin Obenland

    (@obenland)

    Can you point me to the website where this is happening? What’s the search query you used?

    Thread Starter bhaveshpawar

    (@bhaveshpawar)

    It is happening on my local site , and talking about search query i just typed my page title that is to be searched and then selected the result from the suggestions.

    Plugin Author Konstantin Obenland

    (@obenland)

    I you change line 166 in wp-search-suggest.php to the following, does that fix it?

    "SELECT ID FROM $wpdb->posts WHERE post_title = %s AND post_status = 'publish' LIMIT 1",
    
    Thread Starter bhaveshpawar

    (@bhaveshpawar)

    My post is published , so this is not working. Rather i have changed this line to echo esc_url("/wp/?s=".trim( stripslashes( $_REQUEST['title'] ))); and have redirected result to search page and then from there it works.

    Plugin Author Konstantin Obenland

    (@obenland)

    Thanks for the update!

    martineas

    (@martineas)

    Hi Konstantin!

    I have a similar problem. I have installed your plugin in my local site, however, when I click on the suggested titles, it will direct me to 404 Error page. The URL is similar with the URL error in this thread. Is there any way for me to change the cursor from hand to pointer? Or disable the hyperlink in the suggested titles?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search result redirects to wrong links’ is closed to new replies.