Skip to content

Commit 5723204

Browse files
github-actions[bot]kandharvishnuashbpierrejeambrun
authored andcommitted
[v3-0-test] Fix AF3 TriggerDagRunLink to handle combinations of base_url (#54218) (#54760)
(cherry picked from commit 0204a89) Co-authored-by: kandharvishnu <[email protected]> Co-authored-by: Ash Berlin-Taylor <[email protected]> Co-authored-by: Pierre Jeambrun <[email protected]>
1 parent 9076e01 commit 5723204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow-core/src/airflow/utils/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def build_airflow_dagrun_url(dag_id: str, run_id: str) -> str:
204204
http://localhost:8080/dags/hi/runs/manual__2025-02-23T18:27:39.051358+00:00_RZa1at4Q
205205
"""
206206
baseurl = conf.get("api", "base_url", fallback="/")
207-
return urljoin(baseurl, f"dags/{dag_id}/runs/{run_id}")
207+
return urljoin(baseurl.rstrip("/") + "/", f"dags/{dag_id}/runs/{run_id}")
208208

209209

210210
# The 'template' argument is typed as Any because the jinja2.Template is too

0 commit comments

Comments
 (0)