You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "sadamasin0 (via GitHub)" <gi...@apache.org> on 2026/03/12 16:00:09 UTC
[I] TriggerDagRunLink does not respect base_url when Airflow runs behind a URL prefix [airflow]
sadamasin0 opened a new issue, #63456:
URL: https://github.com/apache/airflow/issues/63456
### Apache Airflow version
Other Airflow 3 version (please specify below)
### If "Other Airflow 3 version" selected, which one?
3.1.3
### What happened?
The extra link generated by TriggerDagRunLink (the “Triggered DAG” button) builds a UI URL without honoring base_url setting.
When Airflow is running behind a reverse proxy on a subpath (e.g. /airflow/), the link breaks.
### What you think should happen instead?
Extra links should use the same base URL logic documented for reverse proxy deployments.
The reverse proxy guide specifically shows that Airflow must use base_url for correct link generation.
### How to reproduce
1. Run Airflow UI behind a prefix, e.g. https://myhost/myorg/airflow/
2. Use TriggerDagRunOperator
3. After the task completes, open Task Details → Extra links
4. Click Triggered DAG → browser attempts to open /dags/... instead of /myorg/airflow/dags/...
### Operating System
Red Hat Enterprise Linux 8.10
### Versions of Apache Airflow Providers
_No response_
### Deployment
Virtualenv installation
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] TriggerDagRunLink does not respect base_url when Airflow runs behind a URL prefix [airflow]
Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #63456:
URL: https://github.com/apache/airflow/issues/63456#issuecomment-4054219499
No worries, thanks for the confirmation @sadamasin0 .
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] TriggerDagRunLink does not respect base_url when Airflow runs behind a URL prefix [airflow]
Posted by "sadamasin0 (via GitHub)" <gi...@apache.org>.
sadamasin0 commented on issue #63456:
URL: https://github.com/apache/airflow/issues/63456#issuecomment-4053562202
@tirkarthi
thank you for your input
issue can be closed - we used different kind of Operator in this case, custom one. Issue on our side.
sorry for inconvienience.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] TriggerDagRunLink does not respect base_url when Airflow runs behind a URL prefix [airflow]
Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #63456:
URL: https://github.com/apache/airflow/issues/63456#issuecomment-4048513273
base_url seems to be used in constructing the link. Can you please check if your provider package has this code and add the provider version?
Ref https://github.com/apache/airflow/pull/54218
https://github.com/apache/airflow/blob/b9e8fbaa7a484ecfb473a2653384b69906bf152e/providers/standard/src/airflow/providers/standard/operators/trigger_dagrun.py#L112
https://github.com/apache/airflow/blob/b9e8fbaa7a484ecfb473a2653384b69906bf152e/airflow-core/src/airflow/utils/helpers.py#L196
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] TriggerDagRunLink does not respect base_url when Airflow runs behind a URL prefix [airflow]
Posted by "sadamasin0 (via GitHub)" <gi...@apache.org>.
sadamasin0 commented on issue #63456:
URL: https://github.com/apache/airflow/issues/63456#issuecomment-4048872797
@tirkarthi
I have checked provider package and it has the code you pointed.
However issue occurs - I even double checked base_url value in config. It's correct in both api and webserver sections.
> apache-airflow-providers-standard==1.10.0
Also, I've inspected link in my browser and it starts with `/`, so it seems for some reason the fallback was used instead of configured `base_url`.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] TriggerDagRunLink does not respect base_url when Airflow runs behind a URL prefix [airflow]
Posted by "sadamasin0 (via GitHub)" <gi...@apache.org>.
sadamasin0 closed issue #63456: TriggerDagRunLink does not respect base_url when Airflow runs behind a URL prefix
URL: https://github.com/apache/airflow/issues/63456
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] TriggerDagRunLink does not respect base_url when Airflow runs behind a URL prefix [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #63456:
URL: https://github.com/apache/airflow/issues/63456#issuecomment-4047931986
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] TriggerDagRunLink does not respect base_url when Airflow runs behind a URL prefix [airflow]
Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #63456:
URL: https://github.com/apache/airflow/issues/63456#issuecomment-4050095671
Can you please run the below where the api server runs to see value is printed as expected. You can also try calling `build_airflow_dagrun_url` in the api server to see if base url is considered.
```python
from airflow.configuration import conf
print(conf.get("api", "base_url", fallback="/"))
```
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org