-
Bug
-
Resolution: Fixed
-
Minor
-
2.2, 2.3.1, 2.4
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_22_STABLE, MOODLE_23_STABLE
-
master_
MDL-34656 -
Reproduce:
- Run any SCORM-lesson.
- Start working with any lesson page.
- Click "Logout" by middle mouse button. Thats do logout, but tab with SCORM will remain on previous window.
- Return to window contained SCORM-lesson.
- Try move to any lesson-page.
Result:
Login form embedding into SCORM-frame.
Solving:
I manage it by adding next five lines at the start of login/index.php file:
|
echo '<script>
|
var str = top.location.href;
|
if (str.substr(str.length - 20, 20) == "mod/scorm/player.php") {
|
top.location.href = str.substr(0, str.length - 20) + "login/index.php";
|
}</script>';
|
That script manage problem, but I think it's not best way.