Problem when going back to page with search results

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Problem when going back to page with search results

This topic contains 9 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 1 year, 5 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #35027
    bueno57
    bueno57
    Participant

    Hello,

    My client is experiencing a problem with the search results. As you can see on this video:
    https://streamable.com/uluaev when they are on submitted url and go in to a custom post and then hit the return button in the browser they are coming back to the bottom of the page when they return.

    I have tried to add a min-height for the search results container but it doesn’t help. And tried rewrite the url for the back-button but that doesn’t work either. Do you have any ideas??

    #35031
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    I’m afraid this is a browser specific behaviour, the browser tries to scroll back to the original position, however the search results are not there yet, so it is miscalculated.

    If you want, I can take a look at this via the source code to see if there is any way to correct. For that, please make sure to update the plugin to the latest version first (4.21.3). Then if you can add temporary FTP access I will try to debug it.

    Best,
    Ernest Marcinko

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


    #35033
    bueno57
    bueno57
    Participant
    You cannot access this content.
    #35036
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


    #35037
    bueno57
    bueno57
    Participant
    You cannot access this content.
    #35040
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Thank you, that worked.

    I may have found a possible resolution. It is still not perfect and probably never will be, as the browser sooner starts to restore the scrolling point before even the results are shown.
    Currently for most of the time the plugin will try to scroll to the last clicked item, or to the last visible item if the item is not loaded yet.
    I will include this or an improved fix in the upcoming release.

    Best,
    Ernest Marcinko

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


    #35045
    bueno57
    bueno57
    Participant

    Thanks, i the solution live now?

    #35050
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Yes, although I only tested on Chrome an Firefox browsers.

    Best,
    Ernest Marcinko

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


    #35054
    bueno57
    bueno57
    Participant
    You cannot access this content.
    #35061
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Sorry, my mistake, I made a change there as well for testing, and I forgot to turn it off. It should be okay now.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.