Commit 133ad4a0 authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

fix the generation of the job uri

the generation of the uri *must* take into account
the reverse-proxy headers
parent 8c7b82a2
Pipeline #128776 failed with stages
in 15 seconds
......@@ -84,12 +84,13 @@ def jobs(request):
job.state = Job.WAITING
no_domain_url = reverse('api:job', kwargs={'pk'})
path = reverse('api:job', kwargs={'pk'})
response = {
"avg_time": 0, # legacy, not relevant anymore
"id" :,
"url" : request.build_absolute_uri(no_domain_url),
"url" : get_base_url(request)+path,
return JsonResponse(response)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment