Skip to content

[Bug] "View in Airflow" URL defaults to /tree?dag_id causing 404 error in Airflow 3 #72631

Closed as not planned

Description

@gnaneshwarbandari-tw

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_id URL to /dags/<dag_id> when the page opens.
  • In Airflow 3: The /tree endpoint 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.0 in an Airflow 3 environment.
  • Add an Airflow configuration override for datahub.datajob_url_link set to grid.
  • 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=grid via 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

Activity

  1. boring-cyborg commented on Sep 7, 2026

    @boring-cyborg

    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.

  2. changed the title [-]** [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[/+] on Sep 7, 2026
  3. shahar1 commented on Sep 13, 2026

    @shahar1
    Contributor

    We do not maintain acryl-datahub-airflow-plugin

  4. removed
    kind:bugThis is a clearly a bug
    needs-triagelabel for new issues that we didn't triage yet
    on Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions