Description
Under which category would you file this issue?
Providers
Apache Airflow version
1.7.0
What happened and how to reproduce it?
Description
We have configured our DataHub connection with Airflow to automatically sync Airflow DataJobs and DataFlows with DataHub. While this setup works perfectly in Airflow 2, the external URL generation results in a dead link when used with Airflow 3.
Actual Behavior
When a DAG runs, it gets synced automatically to DataHub. However, when clicking the "View in Airflow" link in the DataHub UI, the generated URL uses the /tree?dag_id=<dag_id> path.
- In Airflow 2: This works fine because Airflow automatically converts/redirects the
/tree?dag_idURL to/dags/<dag_id>when the page opens. - In Airflow 3: The
/treeendpoint is no longer supported and does not redirect, resulting in a 404 Not Found error.
Even after explicitly upgrading the DataHub plugin to acryl-datahub-airflow-plugin[airflow3]==1.7.0 and configuring Airflow configuration overrides to set datajob_url_link=grid, the external URL for the DAG (DataFlow) remains stubbornly hardcoded to /tree.
Expected Behavior
The DataHub plugin should detect the Airflow 3 environment (or provide a configuration parameter like dataflow_url_link) to generate the correct /dags/<dag_id>/grid or /dags/<dag_id>/details URL directly for the DataFlow entity, avoiding the deprecated /tree path.
Steps to Reproduce
- Install
acryl-datahub-airflow-plugin[airflow3]==1.7.0in an Airflow 3 environment. - Add an Airflow configuration override for
datahub.datajob_url_linkset togrid. - Trigger a DAG run so the metadata syncs to DataHub.
- Navigate to the synced DataFlow in the DataHub UI.
- Click on the "View in Airflow" link.
- Observe the 404 error as the browser attempts to load the
/tree?dag_id=URL.
Environment details
- Airflow Version: 3.x
- DataHub Plugin Version:
acryl-datahub-airflow-plugin[airflow3]==1.7.0 - Configuration: Applied
datajob_url_link=gridvia configuration overrides.
What you think should happen instead?
No response
Operating System
No response
Deployment
None
Apache Airflow Provider(s)
No response
Versions of Apache Airflow Providers
No response
Official Helm Chart version
Not Applicable
Kubernetes Version
No response
Helm Chart configuration
No response
Docker Image customizations
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Activity
boring-cyborg commentedon Sep 7, 2026
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.
[-]** [Bug] "View in Airflow" URL defaults to `/tree?dag_id` causing 404 error in Airflow 3[/-][+] [Bug] "View in Airflow" URL defaults to `/tree?dag_id` causing 404 error in Airflow 3[/+]gnaneshwarbandari-tw commentedon Sep 7, 2026
https://github.com/datahub-project/datahub/blob/f98764ed1084bc4d98dcd9b31aa729f5a77e6aed/metadata-ingestion-modules/airflow-plugin/src/datahub_airflow_plugin/client/airflow_generator.py#L205
shahar1 commentedon Sep 13, 2026
We do not maintain
acryl-datahub-airflow-plugin