Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser back button from details page to listing page is not taking to the previous page correctly. #273

Closed
rsambhangi opened this issue Mar 18, 2017 · 7 comments

Comments

@rsambhangi
Copy link

Issue: This is reproducible on http://infiniteajaxscroll.com/examples/history.html.

Expected Result: To load the second page i.e. http://infiniteajaxscroll.com/examples/history/page2.html.

Any help is greatly appreciated to fix this issue?

Thanks in advance!

@rsambhangi rsambhangi changed the title History and Paging is not working for browser back button from details page to listing page after scroll. Browser back button from details page to listing page is not taking to the previous page correctly. Mar 19, 2017
@fieg
Copy link
Member

fieg commented Mar 20, 2017

Please specify browser and version.

@rsambhangi
Copy link
Author

Able to reproduce on MacBook Pro (Retina, 13-inch) with OS X EI Capitan on Chrome Version 56.0.2924.87 (64-bit).

@fieg
Copy link
Member

fieg commented Mar 20, 2017

It's not a bug, but the closest possible solution we can offer for this functionality.

When you press the back button, you are being brought back to page2 (where you left, as you can notice in the url when you scrolled there). So that's correct, although the browser doesn't bring you back to the exact position, sadly. The next page (page 3) is probably loaded, because it came into the viewport.

@rsambhangi
Copy link
Author

Agreed its the closed possible solution considering that the page 2 content section is smaller than the previous viewport so next page got triggered.

I would still propose it as bug because the same behavior is not true(at my end at-least) for Safari and Firefox browsers.

When I tried the same steps on Safari(v10.0.0.2) it took me to the correct page and exact position(i.e. page 2 and Item 2.2). Whats even interesting is - it has all the Page 1 content pre-loaded even though you are on Page 2 but where as for Chrome it first loads the Page 2 along with load previous items link at the top and then scrolls to the bottom(may be viewport as you mentioned) and then loads the Page 3 items.

So little bit confused about History plugin on Safari and Firefox vs Chrome and which behavior is correct?

Please advice!

@fieg
Copy link
Member

fieg commented Mar 21, 2017

We try to be as cross-browser compatible as we can, but different browsers use different ways to navigate back.

@josephfelix
Copy link

Same trouble here... I will wait for a way to fix it.

@fieg
Copy link
Member

fieg commented Mar 2, 2020

I'm closing this issue because Infinite Ajax Scroll 2 reached end of life and is being superseded by v3.

Suggestions given in this issue are filled under: #467. If you have questions, feedback or want to contribute, please comment on the new issue.

@fieg fieg closed this as completed Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants