Home › Forums › Bug reporting, Questions & Suggestions › Ajax Search Pro for WordPress › Trigger and redirection behavior / Custom URL > GET instead of POST › Reply To: Trigger and redirection behavior / Custom URL > GET instead of POST
October 21, 2021 at 1:42 pm
#35259
Keymaster
Hi,
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.