This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

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

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #35027
    bueno57bueno57
    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 MarcinkoErnest 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.

    #35033
    bueno57bueno57
    Participant

    You cannot access this content.

    #35036
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #35037
    bueno57bueno57
    Participant

    You cannot access this content.

    #35040
    Ernest MarcinkoErnest 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.

    #35045
    bueno57bueno57
    Participant

    Thanks, i the solution live now?

    #35050
    Ernest MarcinkoErnest Marcinko
    Keymaster

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

    #35054
    bueno57bueno57
    Participant

    You cannot access this content.

    #35061
    Ernest MarcinkoErnest 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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.