Sona and pavlovia redirection (working with mulitple sona pools)

I know we can redirect participants from sona to Pavlovia then back to Sona. However, what if I am using two sona pools and I want to redirect the participants to the Sona pool where they come from?

I know psychopy/js can access information from the link. Maybe I can pipe the information through the link from sona to pavlovia by appending it as index.html?sona_source=ling/psych?

Is there a way to achieve this? I wonder is there anyone who has experience of working with multiple sona pools?

If you send info about which Sona the participant is coming from them you can use that to change the redirect URL with psychoJS.setRedirectUrls(myCompletedURL

1 Like

Thank you! Do you know whether SONA outputs its own URL or other information so that it can be piped into Pavlovia? Right now, it outputs ?participant=%SURVEY_CODE% but this isn’t enough to distinguish which SONA pool the participant is from.

You can add what you like to that. Just remember to use & instead of two question marks.

1 Like

Thank you Wakefield! I have sorted out the issue! Forget that I can pipe whatever info I want :grinning_face_with_smiling_eyes: