From 6fce3e0c971a462d78100f1dde0f4f2b505b762e Mon Sep 17 00:00:00 2001 From: Claus Lohmar Date: Mon, 27 Jul 2026 11:56:11 +0000 Subject: [PATCH] fix: rename job status page to /session/job/{id} to avoid collision with JSON polling endpoint /session/status/{id} --- frontend/app.py | 2 +- frontend/templates/configure.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app.py b/frontend/app.py index aa8ab60..ed1380e 100644 --- a/frontend/app.py +++ b/frontend/app.py @@ -391,7 +391,7 @@ async def configure_submit(request: Request): return JSONResponse({"error": exc.detail}, status_code=502) -@app.get("/session/status/{job_id}", response_class=HTMLResponse) +@app.get("/session/job/{job_id}", response_class=HTMLResponse) async def session_status_page(request: Request, job_id: str): """Full page showing job progress with polling.""" return render("job_polling.html", request=request, job_id=job_id, diff --git a/frontend/templates/configure.html b/frontend/templates/configure.html index a0fc32e..4688f36 100644 --- a/frontend/templates/configure.html +++ b/frontend/templates/configure.html @@ -211,7 +211,7 @@ async function submitConfig() { var resp = await fetch('/session/configure/submit', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) }); var data = await resp.json(); if (data.error) { throw new Error(data.error); } - window.location.href = '/session/status/' + data.job_id; + window.location.href = '/session/job/' + data.job_id; } catch (err) { status.innerHTML = '
Failed: ' + err.message + '
'; btn.disabled = false;