Context: In my application I have an index page with paginated records. I want to user to be able to view and then delete records.
The expected user flow for this interaction is:
- User on Index page scrolls to find the record they want.
- User clicks "view" Link to view the record.
- User clicks "delete" Button to delete the record.
- The User should be redirected back to the Index page with the same scroll position and the record now missing.
So far I have been handling redirects back by using the browsers window.history.back() functionality (which keeps the old scroll position and url params), however this will not refresh the records.
I'm looking to see if I'm missing something obvious or if anyone knows of a way to solve the issue.