Skip to content

Commit

Permalink
redirect to the origin page with all the params (#29212)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7315d6f)
  • Loading branch information
hussein-awala authored and pierrejeambrun committed Mar 8, 2023
1 parent e6347c7 commit cd6b1f1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion airflow/www/templates/airflow/dag.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,13 @@ <h4 class="pull-right js-dataset-triggered" style="user-select: none;-moz-user-s
<button type="submit" class="dropdown-form-btn">Trigger DAG</button>
</form>
</li>
<li><a href="{{ url_for('Airflow.trigger', dag_id=dag.dag_id, origin=url_for(request.endpoint, dag_id=dag.dag_id)) }}">Trigger DAG w/ config</a></li>
<li>
{% if 'dag_id' in request.args %}
<a href="{{ url_for('Airflow.trigger', dag_id=dag.dag_id, origin=url_for(request.endpoint, **request.args)) }}">
{% else %}
<a href="{{ url_for('Airflow.trigger', dag_id=dag.dag_id, origin=url_for(request.endpoint, dag_id=dag.dag_id, **request.args)) }}">
{% endif %}
Trigger DAG w/ config</a></li>
</ul>
</div>
<a href="{{ url_for('Airflow.delete', dag_id=dag.dag_id, redirect_url=url_for(request.endpoint, dag_id=dag.dag_id)) }}" title="Delete&nbsp;DAG" class="btn btn-default btn-icon-only{{ ' disabled' if not dag.can_delete }}"
Expand Down

0 comments on commit cd6b1f1

Please sign in to comment.