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.
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 returnsfalse
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.