| Reference | Downloads | Github

How to provide return link in jsPsych for participants recruited through prolific?

I have not found any documentation on how to provide a completion return link to Prolific using jsPsych and the Pavlovia plugin. My issue is that I don’t know what does the Pavlovia script do at the end of a jsPsych experiment. Is it okay to redirect inside the on_finish function?

let pavlovia_finish = {
        type: "pavlovia",
        command: "finish"

        timeline: timeline,
        on_finish: function () {
            location.href="returnlink.html" // Real link would go here