When setting up an experiment from scratch that has a block based on hooked.py or matching_pairs.py in it, one might choose a different slug for the experiment.slug as compared to the block.slug. When hitting the "Play again" button at the end of such a block, the url to redirect to the experiment will fail, as the url of the redirect is set up as follows:
Description
When setting up an experiment from scratch that has a block based on
hooked.py
ormatching_pairs.py
in it, one might choose a different slug for theexperiment.slug
as compared to theblock.slug
. When hitting the "Play again" button at the end of such a block, the url to redirect to the experiment will fail, as the url of the redirect is set up as follows:The easy fix is of course to make sure that the slugs match. But to avoid this bug, we should either:
f"/block/{session.block.slug}{participant_id_url_param}
I don't currently know which of the two approaches is preferable.
Reproduction URL
https://tst.amsterdammusiclab.nl/block/tune
Reproduction steps
Logs
No response
Browsers
No response
OS
No response
Additional context
No response