I am building a Visualforce search page with results in a list format. When a user clicks a result, they are taken to a detail page for that record.
However, when they hit the back button on their browser, all their search results are lost and they get a fresh search page, which requires them to re-do their search to get their results back. Users are not happy!
I have been investigating options and have come up with these: I have a tricky problem - back button losing context and search parameters (as is common in salesforce ajax loaded pages) Do you have any ideas on how to solve?
Current possible solutions are:
- Rewrite the url in the list view (which necessitates a page reload on search as IE9 is being used)
- Save the search parameters in a session object in SF (hard to determine wether to load the session variables though)
- Use Ajax to swap in a detail component, in place of the list view component (whilst keeping the main page untouched)
- Open in a new tab.
- Open using a popup.
My questions is this: Are there better options available? If so, I'd love to be illuminated.