Using the back button on the browser after viewing details produces Document Expired..

dealio

Member
How do you prevent the Document Expired message when clicking the back button after viewing details to go back to the list.


When clicking on the back button it tries to go back to.

.../index.php?option=com_fabrik&view=list&listid=2&Itemid=123&resetfilters=0&clearordering=0&clearfilters=0


=====firefox returns=============
Document Expired
This document is no longer available.
The requested document is not available in Firefox's cache.

As a security precaution, Firefox does not automatically re-request sensitive documents.
Click Try Again to re-request the document from the website.

============================

Thanks
 
I know this is an old thread, but just to archive a solution.

By use a form_x.js script, you can prevent the use of the browser back button.
Code:
jQuery(document).ready(function() {
  window.addEventListener('popstate', function(event) {
    if (event.state) {
      if (window.history.state == null){
        return;
      }
     window.history.pushState({},'', window.location.href);
    }
  }, false);
  window.history.pushState({},'', window.location.href);
});
 
I've sought this solution for years, because I always cringe when I hit the back button in the browser and get the expired page.

Where would you see it placed in the wiki?
 
Thanks. For future reference you should leave the Redirect To dropdown at the bottom as default, otherwise it acts as a redirect page and takes the user somewhere else.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top