Reply To: How do I get the URL of this result page?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How do I get the URL of this result page? Reply To: How do I get the URL of this result page?

#15177

Ernest Marcinko
Keymaster

Hi!

A direct link cannot be made, because the search form information is submitted as well. However if the search is visible on the page, then you can make an API call for a search redirect via javascript, like so:

ASP.api(1, 'searchRedirect', "");

This code will make a searchRedirect function call on the search instance ID=1, with an empty ” search phrase. You could possibly make an event handler on the onclick event of the link, and execute this API call, which will trigger a search request.

Best,
Ernest Marcinko

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