diff --git a/webapi/index.py b/webapi/index.py index 1bf12e8..3163ba6 100644 --- a/webapi/index.py +++ b/webapi/index.py @@ -654,7 +654,7 @@ def initexecution(wid, version, methods=('GET')): we_record = restApiControl.getWorkflowRecordGeneral(wid, int(version)) if we_record is not None: weid = restApiControl.createExecution(wid, int(version), ip=getUserIPAddress(), no_onto=disable_onto) - return redirect(url_for("executionStatus", weid=weid)) + return redirect(f'{BASE_URL}/workflowexecutions/{weid}') else: return my_render_template('basic.html', body=Markup('
Workflow with given ID and version was not found.
'), login=login_header_html()) @@ -711,7 +711,7 @@ def executeworkflow(weid): restApiControl.scheduleExecution(weid) data = restApiControl.getExecutionRecord(weid) logID = data['ExecutionLog'] - return redirect(url_for("executionStatus", weid=weid)) + return redirect(f'{BASE_URL}/workflowexecutions/{weid}') @app.route('/workflowexecutions//inputs', methods=('GET', 'POST'))