Trigger and redirection behavior / Custom URL > GET instead of POST

Home Forums Bug reporting, Questions & Suggestions Ajax Search Pro for WordPress Trigger and redirection behavior / Custom URL > GET instead of POST

This topic contains 3 replies, has 2 voices, and was last updated by Manu Manu 2 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #35251

    Hello Enerest,

    Thank you for the last big update, the relevance is much better when there is apostrophe in keywords ! 🙂

    But since then I have a annoying problem.
    You will find attach my “Trigger and redirection behavior” settings.
    Now when I click the manifier icon or when i press the return button, i’m going to my custom url but with a POST request. I would like to have a GET request like before.

    Can you tell me where in the code I can patch that if it’s not possible for the moment on the admin ?

    Thank you very much,


    • This topic was modified 2 years, 8 months ago by Manu Manu.
    You must be logged in to view attached files.

    I saw jquery.ajaxsearchpro.js

    } else {
                    // The method is not important, just send the data to memorize settings
                    asp_submit_to_url(url, 'post', {
                        np_asid: $,
                        np_asp_data: $('form', $this.n.searchsettings).serialize()
                    }, _loc);       

    But i’m not using the legacy javascript source.

    The only js files loaded are :

    Thank you

    Ernest Marcinko
    Ernest Marcinko


    If you enable the search override, it will use the GET request. Otherwise a silent POST is used to maintain the search filter and configuration states. I

    If you don’t want to use the override, then for a permanent solution, try using an override method for the window.WPD.ajaxsearchpro.helpers.submitToUrl function:

    window.WPD.ajaxsearchpro.helpers.submitToUrl = function(url) { location.href = url };

    That should override the one used in the new scripts with a simple redirection.

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    Thanks a lot 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Ajax Search Pro for WordPress’ is closed to new topics and replies.