Custom URL

This topic contains 8 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 months, 2 weeks ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #39974
    jarry23
    jarry23
    Participant

    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.

    #39986
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #39987
    jarry23
    jarry23
    Participant

    Hi,

    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.

    #39990
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Yes – 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 :)


    #40008
    jarry23
    jarry23
    Participant

    I 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/oFlkaXLb6EO0

    here for keyword “double”
    https://prnt.sc/I5Sqsn0wyGBI
    And when I search one more time for same keyword, page is redirected https://prnt.sc/NvM2_qLEmuPW

    #40009
    jarry23
    jarry23
    Participant

    Oh 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 );

    #40013
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    It 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 :)


    #40017
    jarry23
    jarry23
    Participant

    Hi,

    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.

    #40020
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Of 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.
    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.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.