config.configuration.ondiscard_redirect_url - Initialization - Items API

Items API Initialization

ondiscard_redirect_url

The URL to redirect the learner to when the assessment has been discarded by a proctor.

You would want to specify this option so that you can control the new page that the learner will go to.

Examples

var initializationOptions = {
    "config": {
        "configuration": {
            "ondiscard_redirect_url": "https://learnosity.com"
        }
    }
};

Values

Attribute path config.configuration.ondiscard_redirect_url

Default "/" (redirects to the home page for the current domain)

  • Type boolean

    Set to false to prevent any redirect.

  • Type string

    Automatically redirect to the supplied URL when the session has been discarded.

Related articles

  • The onsave_redirect_url initialization option, which redirects the learner to the specified URL when the session has been saved.
  • The onsubmit_redirect_url initialization option, which redirects the learner to the specified URL when the session has been submitted.
Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.