4

I have one view of a multimedia page wherein I use AJAX for pagination. The view shows the result of a multimedia image. When I click on the image it goes to the inner content page. In the inner content page there is a back button. When I click the button, it goes back to the previous page from where I came.

When I click on the back button it always forwards me to the multimedia page. But I want it to forward me to pagination page 2 if I came from page 2.

  • 1
    What about passing the page number in the http request (using GET method for example) – rreiss Apr 24 '14 at 7:33
  • This sounds like a great solution. – Felix Eve Apr 24 '14 at 11:03
1

There is a module views_ajax_history which uses https://github.com/browserstate/history.js to maintain the current state of page and push them into browse history with HTML5 history api. This library support fallback if history api is not supported by older browser.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.