Create a browser history after new page content update so browsers next/back buttons may work?

Related issue #1460406: When return on Search page should scroll page to see the node I opened priviously

Added from comment #6

I am not sure I fully understand the issue, but my understanding of this issue follows.

Problem description and how to reproduce:

From view with infinite scroll, click more and select a node from new scrolled list, then click browser back button to return to view. You do not return to the portion of the view that listed that node, instead you return to the first page of the view.

Can someone clarify the issue?

Comments

jrb’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new984 bytes

Attached is a patch that adds support for browser history to the current 7.x-2.x branch.

toberr’s picture

very good patch but there is a little bag
When i use back button in browser the infiniti scroll doesn't work and i see jast standart drupal pager

jrb’s picture

StatusFileSize
new993 bytes

Patch in #1 re-rolled for latest dev.

sittard’s picture

Any chance we could have this feature on the Drupal 8 version as well. Thanks.

izmeez’s picture

Status: Needs review » Needs work

The patch in #3 applies to the current 2.x-dev but I don't think it is fixing the problem, at least not in Firefox, haven't done more extensive testing.

I am not sure I fully understand the issue, but my understanding of this issue follows.

Problem description and how to reproduce:

From view with infinite scroll, click more and select a node from new scrolled list, then click browser back button to return to view. You do not return to the portion of the view that listed that node, instead you return to the first page of the view.

While the patch in #3 does apply it does not fix this problem. The problem is unchanged.

I am changing status of this issue to needs work. Thanks.

izmeez’s picture

Issue summary: View changes
sgdev’s picture

You might want to review the Views Ajax History module. I think it does what you are looking to accomplish.

The browser URL is automatically updated as you scroll, and can use the browser back button to go to the previous "page" (essentially an anchor point higher up on the page).

https://www.drupal.org/project/views_ajax_history

neslee canil pinto’s picture

Status: Needs work » Closed (won't fix)