Initialization Option Items API

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

Request object key config.configuration.onsubmit_redirect_url

Default: "/" (redirects to the home page)

This option can be initialized as one of the following types: boolean string.

  • 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?