diff --git a/abogen/web/routes/main.py b/abogen/web/routes/main.py index 05ea916..c251fae 100644 --- a/abogen/web/routes/main.py +++ b/abogen/web/routes/main.py @@ -328,7 +328,7 @@ def wizard_cancel(): remove_pending_job(pending_id) if wants_wizard_json(): - return jsonify({"status": "cancelled", "redirect": url_for("main.index")}) + return jsonify({"status": "cancelled", "redirect_url": url_for("main.index")}) return redirect(url_for("main.index")) @@ -356,7 +356,7 @@ def wizard_finish(): return jsonify({ "status": "submitted", "job_id": job_id, - "redirect": url_for("main.index"), + "redirect_url": url_for("main.index"), "jobs_panel": render_jobs_panel() }) diff --git a/abogen/web/static/wizard.js b/abogen/web/static/wizard.js index 99d552f..eae3a2f 100644 --- a/abogen/web/static/wizard.js +++ b/abogen/web/static/wizard.js @@ -326,6 +326,7 @@ const submitWizardForm = async (form, submitter) => { const formData = new FormData(form); if (normalizedStepTarget) { formData.set("active_step", normalizedStepTarget); + formData.set("next_step", normalizedStepTarget); } if (submitter && submitter.name && !formData.has(submitter.name)) { formData.append(submitter.name, submitter.value ?? ""); diff --git a/abogen/web/templates/partials/new_job_step_chapters.html b/abogen/web/templates/partials/new_job_step_chapters.html index 72bf3cb..ad3f2aa 100644 --- a/abogen/web/templates/partials/new_job_step_chapters.html +++ b/abogen/web/templates/partials/new_job_step_chapters.html @@ -1,5 +1,5 @@
+