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

  1. bolonki
    Posted 3 years ago #

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


    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
    Plugin Author

    Posted 3 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
    Posted 3 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.


  4. scribu
    Plugin Author

    Posted 3 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