-
Bug
-
Resolution: Fixed
-
Major
-
3.7.6, 3.8.3, 3.9, 3.9.4, 3.10.1
-
MOODLE_310_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
During a quiz attempt, if the user navigates using the browser's forwards of back buttons, then they may end up with a question shown in their browser which is in a state that is out-of-synch with the current state on the server. Also, the timer may show the wrong time (at least until auto-save runs and fixes it, as in MDL-58926).
Therefore, it would be best if, navigating using browser back or forwards during a quiz attempt, the page is forced to reload (as in https://stackoverflow.com/a/43399649/1292707 or similar).
Note, this might be useful generic functionality. Therefore, probabably the way to implement this is a core JS module core/reloader, and then quiz attempt.php does $PAGE->requires->js_call_amd('core/reloader', 'force_reload_on_history_nav');