mik-laj commented on a change in pull request #11778:
URL: https://github.com/apache/airflow/pull/11778#discussion_r512721829
##########
File path: airflow/operators/dagrun_operator.py
##########
@@ -38,7 +38,8 @@ class TriggerDagRunLink(BaseOperatorLink):
name = 'Triggered DAG'
def get_link(self, operator, dttm):
- return
f"/graph?dag_id={operator.trigger_dag_id}&root=&execution_date={quote(dttm.isoformat())}"
+ query = {"dag_id": operator.trigger_dag_id, "root": "",
"execution_date": dttm.isoformat()}
+ return build_airflow_url_with_query(query)
Review comment:
Can you use url_for here? I guess it should work.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]