oTree Forum >

Query params dropped from URL on reload

#1 by Scott

Hi there, I'm remotely starting browsers on a bunch of PC's in the lab with the command:

  cmd /C \"D:\\Program Files\\Mozilla Firefox\\firefox.exe\" -kiosk https://myapp/room/ROOM1?participant_label=%computername%"

Where %computername% is substituted by the PC's when they process the command so the resultant URL looks like this:

  /room/ROOM1?participant_label=FEELE-23

I don't create the session, but launch the browsers, sit the subjects, make sure the number of PC's is correct then start the otree session. The problem is that otree drops the participant_label from the reload URL:

INFO:     172.23.0.1:39250 - "GET /room/ROOM1?reload=1 HTTP/1.1" 200 OK
INFO:     172.23.0.1:39258 - "GET /room/ROOM1?reload=1 HTTP/1.1" 200 OK
INFO:     172.23.0.1:39276 - "GET /room/ROOM1?participant_label=FEELE-23_1 HTTP/1.1" 307 Temporary Redirect
INFO:     172.23.0.1:39282 - "GET /room/ROOM1?participant_label=FEELE-03_1 HTTP/1.1" 307 Temporary Redirect

The top two are where the PC's tried to reload the page but have dropped the label, the second two haven't reloaded, so are still fine.

otree 5

Any ideas?
Thanks
Scott

#2 by Rainbow

Dear Scott
Do you know why 307 Temporary Redirect appears? May I ask how you resolved it?
Thank you very much for your help!

Write a reply

Set forum username