// Copy the link and REMOVE ?lang=en var my_link = "https://lvanderlinden.limequery.com/249523" // The jatos object only exists when the study is launched from JATOS. if (typeof jatos !== "undefined") { // ADD /newtest/Y/ to the URL. // Use SLASH instead of ? window.open(my_link + "/newtest/Y/jatosStudyResultId/" + jatos.studyResultId) }