You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by am...@apache.org on 2025/08/21 06:30:44 UTC

(airflow) branch main updated: Fix AF3 TriggerDagRunLink to handle combinations of base_url (#54218)

This is an automated email from the ASF dual-hosted git repository.

amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 0204a890791 Fix AF3 TriggerDagRunLink to handle combinations of base_url (#54218)
0204a890791 is described below

commit 0204a89079123090ad6a792e4e373acfd7c19b70
Author: kandharvishnu <46...@users.noreply.github.com>
AuthorDate: Thu Aug 21 12:00:37 2025 +0530

    Fix AF3 TriggerDagRunLink to handle combinations of base_url (#54218)
    
    Co-authored-by: Ash Berlin-Taylor <as...@firemirror.com>
    Co-authored-by: Pierre Jeambrun <pi...@gmail.com>
---
 airflow-core/src/airflow/utils/helpers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/utils/helpers.py b/airflow-core/src/airflow/utils/helpers.py
index 257e2f4f327..112b6e70c98 100644
--- a/airflow-core/src/airflow/utils/helpers.py
+++ b/airflow-core/src/airflow/utils/helpers.py
@@ -214,7 +214,7 @@ def build_airflow_dagrun_url(dag_id: str, run_id: str) -> str:
     http://localhost:8080/dags/hi/runs/manual__2025-02-23T18:27:39.051358+00:00_RZa1at4Q
     """
     baseurl = conf.get("api", "base_url", fallback="/")
-    return urljoin(baseurl, f"dags/{dag_id}/runs/{run_id}")
+    return urljoin(baseurl.rstrip("/") + "/", f"dags/{dag_id}/runs/{run_id}")
 
 
 # The 'template' argument is typed as Any because the jinja2.Template is too