config.configuration.onsubmit_redirect_url - Initialization - Items API

Items API Initialization

onsubmit_redirect_url

The URL to redirect the learner to when the assessment has been submitted successfully.

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": {
            "onsubmit_redirect_url": "https://learnosity.com"
        }
    }
};

Values

Attribute path config.configuration.onsubmit_redirect_url

Default "/" (redirects to the home page)

  • Type boolean

    Set to false to prevent any redirect.

  • Type string

    Automatically redirect to the supplied URL when the user closes the activity after submitting.

Related articles

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

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