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:


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: - "GET /room/ROOM1?reload=1 HTTP/1.1" 200 OK
INFO: - "GET /room/ROOM1?reload=1 HTTP/1.1" 200 OK
INFO: - "GET /room/ROOM1?participant_label=FEELE-23_1 HTTP/1.1" 307 Temporary Redirect
INFO: - "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?

Write a reply

Set forum username