Force returning to the main page when browser reload button pressed on results
-
Solution from C. York:
/**REH clear submit button, so that reload doesn’t resubmit selection and just goes back to previous screen**/
$ret .= ‘ <script> ‘;
$ret .= ‘ if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
} ‘;
$ret .= ‘</script> ‘;
/**REH End clear submit button**/
I put it at the end of the first part of the “if ( count($rows) ) {” section before the else
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Force returning to the main page when browser reload button pressed on results’ is closed to new replies.