mik-laj commented on a change in pull request #11778:
URL: https://github.com/apache/airflow/pull/11778#discussion_r511158522
##########
File path: airflow/operators/dagrun_operator.py
##########
@@ -38,7 +39,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())}"
+ view = conf.get('webserver', 'dag_default_view').lower()
+ return
f"/{view}?dag_id={operator.trigger_dag_id}&root=&execution_date={quote(dttm.isoformat())}"
Review comment:
I'm afraid now it won't work properly if you run Airflow with
[``base_url``](https://airflow.readthedocs.io/en/latest/configurations-ref.html#base-url)
or
[``proxy-fix-prefix``]https://airflow.readthedocs.io/en/latest/configurations-ref.html#proxy-fix-x-prefix]
configured.
----------------------------------------------------------------
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]