I think it would be better to have something like '/project/{project/task/random'. But other routes may need to be changed too.
See https://github.com/pgiraud/osm-tasking-manager2/issues/38.