Skip to content

Commit

Permalink
Web UI - variable for base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislavsulc committed Jul 2, 2024
1 parent f67e3a4 commit 951a42b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapi/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('<h5>Workflow with given ID and version was not found.</h5>'), login=login_header_html())

Expand Down Expand Up @@ -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/<weid>/inputs', methods=('GET', 'POST'))
Expand Down

0 comments on commit 951a42b

Please sign in to comment.