numbas / numbas-lti-provider

An LTI tool provider to run Numbas exams
https://docs.numbas.org.uk/lti/en/latest/
Other
11 stars 12 forks source link

When the student clicks a link to another page which loads in the same window as the exam and then goes back, the SCORM API doesn't reinitialise #305

Open christianp opened 8 months ago

christianp commented 8 months ago

Setup: a question with a link to another website, which opens in the same window. When the student clicks the link, the Numbas exam is replaced with the other website. When they navigate back, the SCORM API has already been initialised, so the API.Initialize call returns false and the Numbas exam starts in standalone mode.

The API wrapper page could detect when the iframe containing the exam navigates to another page, and restart the API from scratch.