-
Improvement
-
Resolution: Fixed
-
Minor
-
2.4.2
-
MOODLE_24_STABLE
-
MOODLE_26_STABLE
-
master_
MDL-38489 -
When a SCORM package is set to open in a pop-up window, it leads the user to a page with an 'Open' button. This button uses Javascript to open the SCORM package in a pop-up window, then returns to the course page.
In mod/scorm/view.js:
scormform.onsubmit = function()
{window.open('', 'Popup', poptions); this.target='Popup'; parent.window.location = course_url;};
This is great, unless you're in a course format (e.g. Topics) with 'show one section per page' enabled. When this happens, you're taken to the course's overview page rather than the page for the topic you were just looking at.
In these circumstances, especially on a course with a lot of stuff in each topic, it would be nice to return to the page for the topic you had open rather than the overview page for the course.
For example, instead of returning to:
my-moodle.tld/course/view.php?id=1234
We should return to:
my-moodle.tld/course/view.php?id=1234§ion=5