This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 57232043c32943b2553b5888c4852c78541005d8
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Aug 21 17:44:38 2025 +0200
[v3-0-test] Fix AF3 TriggerDagRunLink to handle combinations of base_url
(#54218) (#54760)
(cherry picked from commit 0204a89079123090ad6a792e4e373acfd7c19b70)
Co-authored-by: kandharvishnu
<[email protected]>
Co-authored-by: Ash Berlin-Taylor <[email protected]>
Co-authored-by: Pierre Jeambrun <[email protected]>
---
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 74b7dacd33d..ee6faa543a4 100644
--- a/airflow-core/src/airflow/utils/helpers.py
+++ b/airflow-core/src/airflow/utils/helpers.py
@@ -204,7 +204,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