WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
Page Navi adds search query to Page URL /page/2/?s=crap&sbutt=go (4 posts)

  1. bolonki
    Member
    Posted 2 years ago #

    The Page Navi plugin is generating page URLs with search queries from users at the end, like this:

    domain.com/page/4/?s=SearchQuery&sbutt=go

    A similar issue has been brought up before here, where it was attributed to Google Analytics, malware and / or the Super Cache plugin, but I don't use Google Analytics and the blog is malware free.

    I do use SuperCache but its developer Doncha believes the problem is with PageNavi.

    This is a real problem because it is constantly changing the URL of the page and therefore is wreaking havoc on SEO.

    Any help will be greatly appreciated.

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    The PageNavi plugin does not contain any code that can generate something like that, so it's most likely caused by another plugin.

    To prove it, remove the wp_pagenavi() call from your theme and replace it with next_posts_link() and previous_posts_link().

  3. bolonki
    Member
    Posted 2 years ago #

    Thank you Scribu for your reply.

    Removing Pagenavi and restoring the default previous/next system *got rid of the problem*, so it seemed your suggestion backfired. But I still want to use PageNavi because I want page numbers, not back and forth links.

    Regards

  4. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Ok, fair enough. Did you try re-installing a fresh copy of the plugin?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic