Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Custom URL
This topic contains 8 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 9 months ago.
- AuthorPosts
- November 16, 2022 at 10:24 am #39974
Hello,
I already emailed you about this issue.
I’m using a shortcode for a custom results page and everything was working perfectly, but after the last update, when I search from the product page or somewhere else, I’m redirected to the search results page, but I’m not getting a result for the keyword I’m looking for. I get a result of all the products from the newest ones. When I search again (on the results page) it works fine and I get the correct result for the search keyword.November 17, 2022 at 1:12 pm #39986Hi,
Thank you for the details!
It seem that the search override feature caused the conflict, I have turned it off. It is not required in this case because the custom URL is not actually the search results page, and that somehow affected the query string not to include the correct search argument.
From the back-end it works now, you will have to clear all layers of cache and refresh the home page – I was not able to do it, even after clearing all cache still the outdated page was pulled. Once cleared, it will be resolved.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 17, 2022 at 3:47 pm #39987Hi,
yes it works. Thank you very much! There is one more thing I need fix. When you scroll down the results page and click on a product and then click the return button to go back to the search page, the result loads from the beginning and you have to scroll down again, which is annoying.
It also worked fine before, but now I can’t find this function.
When I hit the back button, I was taken back to the exact same position (page) before I visited the product page.November 17, 2022 at 5:38 pm #39990Yes – it was removed from the current release because of a malfunciton.
I have installed a beta of the next version, that one should have that working again. If you clear your cache, it should be fixed hopefully.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 18, 2022 at 12:12 am #40008I noticed one more issue. Maybe its something related to caching? I use lite speed cache plugin.
When I search for any keyword which was not yet searched, site loads but is not redirected to the search page and URL change to this https://www.svgheart.com/?phrase=dragon#
https://prnt.sc/5a6n7EZiAz2W
or
https://www.svgheart.com/product-category/free-svg-files/?phrase=hot#
https://prnt.sc/oFlkaXLb6EO0here for keyword “double”
https://prnt.sc/I5Sqsn0wyGBI
And when I search one more time for same keyword, page is redirected https://prnt.sc/NvM2_qLEmuPWNovember 18, 2022 at 12:21 am #40009Oh I didnt read your last reply. Previouse issue (not redirecting) is not there anymore after cache purge.
But beta version did not help with return function.
I need to scroll again.I have disabled automatic cache purge in functions on line 27
You need to disable this line add_action( ‘shutdown’, function(){@header(‘x-litespeed-purge: nothing’);}, 20 );November 18, 2022 at 9:21 am #40013It works all right on my end, your browser cache might need a clearing too. I tried a few browsers, but it seems to be okay: https://youtu.be/MdtNZlzdlsU
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 18, 2022 at 11:02 am #40017Hi,
it also works for me like that. But try scroll more down. When I scroll more down and next page is loaded and then visit product and return it does not return to the previous position.
November 18, 2022 at 12:48 pm #40020Of course not, because it is not on the screen, it is infinite loaded. You can either increase the default results number or leave it like that. I don’t think there is a way to get around it, it would have to load multiple batches, which takes time, and the all of a sudden it would start scrolling after a few seconds – which would be very annoying.
Some browsers can completely “memorize” the state of the previous page ( I think safari does that ), so when going backwards it does not actually reload the page, but that is decided completely by the browser and it is not yet known how to exactly programmatically achieve that.
Best,
In some cases even Chrome did it for me when I was working on the demo, then it simply stopped, and I have not changed anything. I have tried to research this, but there is no usable information on how to force the browsers to do that.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.