# Completed URL not working in PsychoPy 2022.1.1

**URL:** <https://discourse.psychopy.org/t/completed-url-not-working-in-psychopy-2022-1-1/27942>\
**Category:** Online experiments\
**Created:** [March 12, 2022, 2:39am UTC](https://discourse.psychopy.org/t/completed-url-not-working-in-psychopy-2022-1-1/27942 "2022-03-12T02:39:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hbng26](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@hbng26](https://discourse.psychopy.org/u/hbng26)\
**Post date:** [March 12, 2022, 2:39am UTC](https://discourse.psychopy.org/t/completed-url-not-working-in-psychopy-2022-1-1/27942/1 "2022-03-12T02:39:51Z")

</div>

After updating to the new version, the completed URL adds the ([https://run.pavlovia.org/](https://run.pavlovia.org/)) before the Qualtrics link, which causes the link to be invalid. I’ve used PsychoPy and Pavlovia a lot and never had any problem with Completed URL in the past. Below is what I have in the Setting:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/c/a/ca1e998ce88ed5f938ae4a911cbd91f58805158f.png)

Here is the link participants have been redirected to:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/6/d/6dd304f9393ab720d9de1bdc1c748713f6f992b7.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/a/0/a020c8707fd77cf34fc93efc9cfe43b12a64ff99.png)

Please let me know if there was any change to the 2022.1.1 version that we need to do this process differently. I really appreciate any help you can provide.

---

<div class="post-metadata">

**Author:** ![wen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wen/32/30795_2.png) [@wen](https://discourse.psychopy.org/u/wen)\
**Post date:** [March 12, 2022, 2:47am UTC](https://discourse.psychopy.org/t/completed-url-not-working-in-psychopy-2022-1-1/27942/2 "2022-03-12T02:47:24Z")

</div>

You should probably delete the complete URL

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [March 12, 2022, 9:08am UTC](https://discourse.psychopy.org/t/completed-url-not-working-in-psychopy-2022-1-1/27942/3 "2022-03-12T09:08:49Z")

</div>

While that should work, I’d recommend putting a $ at the start of the completed URL and enclosing it in double quotes to see if the code version helps.

---

<div class="post-metadata">

**Author:** ![hbng26](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@hbng26](https://discourse.psychopy.org/u/hbng26)\
**Post date:** [March 12, 2022, 3:12pm UTC](https://discourse.psychopy.org/t/completed-url-not-working-in-psychopy-2022-1-1/27942/5 "2022-03-12T15:12:41Z")

</div>

Thanks for the suggestion @wakecarter, does it look like below because now the experiment is stuck at “initialising the experiment…”  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/b/7/b77eb7490475bc2d3eb69f7c8276f6eb6aaa04bf.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/9/d/9dc61a6a6e342374cd12cbdf2177adb67908bd05.png)

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [March 12, 2022, 4:09pm UTC](https://discourse.psychopy.org/t/completed-url-not-working-in-psychopy-2022-1-1/27942/6 "2022-03-12T16:09:20Z")

</div>

Have a look at Developer Tools to find out what syntax error is stopping your experiment.

---

<div class="post-metadata">

**Author:** ![pjbennett](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@pjbennett](https://discourse.psychopy.org/u/pjbennett)\
**Post date:** [March 12, 2022, 8:54pm UTC](https://discourse.psychopy.org/t/completed-url-not-working-in-psychopy-2022-1-1/27942/7 "2022-03-12T20:54:44Z")

</div>

Has anyone solved this problem? I have the same error: “run-pavlovia-org” is inserted at the beginning of the completed URL. The program runs and then the user is redirected to a non-existent site [https://run.pavlovia.org/the.completed.url](https://run.pavlovia.org/the.completed.url). Entering the URL as $“[https://the.completed.url](https://the.completed.url)” does not fix the problem (the program runs but the user still ends up at a non-existent site). I’m running v2022.1.1 on mac os x 12.2.1.

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [March 12, 2022, 9:59pm UTC](https://discourse.psychopy.org/t/completed-url-not-working-in-psychopy-2022-1-1/27942/8 "2022-03-12T21:59:24Z")

</div>

Hi Everyone,

I need to test this myself my end. But as a temporary work around for your experiment please could you try adding a code component to the last routine in your experiment, set code type to “JS” and in the end routine tab use  
`psychoJS.setRedirectUrls(YOUR COMPLETION URL)`

Hopefully this helps,

Thanks,  
Becca

---

<div class="post-metadata">

**Author:** ![pjbennett](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@pjbennett](https://discourse.psychopy.org/u/pjbennett)\
**Post date:** [March 12, 2022, 11:26pm UTC](https://discourse.psychopy.org/t/completed-url-not-working-in-psychopy-2022-1-1/27942/9 "2022-03-12T23:26:21Z")

</div>

Yes, that worked for me! Thanks.
