You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.
I've been looking through the issues and found one that was similar: #40 but my problem is with how the URLs are being handled for a ajax method.
Our site uses an ajax call via Kaminari pagination to load additional data into the index page via a link_to_next_page helper; normal behavior would insert the additional data into the index page with a CSS transition. The transition works fine, however, the user is redirected to an associated link.
Root:
http://localhost:3000/san-francisco
Links (links contain data-push="true" and data-target="#main-content"):
Location updates to: http://localhost:3000/san-francisco?page=2
Page is redirected and scrolls to the previous viewport position instead of to the top of the page causing elements to not be seen by the user
Wiselinks seems to be what I'm looking for as a solution, however, it that would need to allow for dynamic content to be loaded onto the same page and hold as a history state. I am open to suggestions on how to accomplish this.
The text was updated successfully, but these errors were encountered:
Issue discovered with #102
I've been looking through the issues and found one that was similar: #40 but my problem is with how the URLs are being handled for a ajax method.
Our site uses an ajax call via Kaminari pagination to load additional data into the index page via a
link_to_next_page
helper; normal behavior would insert the additional data into the index page with a CSS transition. The transition works fine, however, the user is redirected to an associated link.Root:
http://localhost:3000/san-francisco
Links (links contain data-push="true" and data-target="#main-content"):
http://localhost:3000/san-francisco?page=2
http://localhost:3000/san-francisco?page=3&_=1431025498939
Upon click:
Location updates to:
http://localhost:3000/san-francisco?page=2
Page is redirected and scrolls to the previous viewport position instead of to the top of the page causing elements to not be seen by the user
Wiselinks seems to be what I'm looking for as a solution, however, it that would need to allow for dynamic content to be loaded onto the same page and hold as a history state. I am open to suggestions on how to accomplish this.
The text was updated successfully, but these errors were encountered: