plugin-redirect-to-url #188
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This simple plugin facilitates redirecting participants to an external URL after a trial or at the end of an experiment. A typical use-case might be integrating with participant recruitment or compensation platforms such as Prolific or MTurk, which often require participants to go back to that platform at the end of a study. The plugin has parameters for whether to abort the experiment on redirect, whether to open the new URL in a new tab or not, and allows showing the participant a HTML stimulus before they press a button to redirect.
While it would be easy to implement a redirect in a on_finish callback in some other plugin, the motivation for this plugin is to make this a bit more accessible and explicit in the timeline, as well as providing some extra convenience functionality.
This plugin is compatible with jsPsych 8+