Skip to content

Keep legacy Dag tree links working - #72644

Closed
Kunal8954 wants to merge 1 commit into
apache:mainfrom
Kunal8954:agents/issue-72631-tree-redirect
Closed

Kunal8954 wants to merge 1 commit into
apache:mainfrom
Kunal8954:agents/issue-72631-tree-redirect

Conversation

@Kunal8954

Copy link
Copy Markdown
Contributor

Airflow 3 no longer serves the Airflow 2 /tree?dag_id=... URL, but external integrations such as DataHub still generate it. Those links currently end in a 404.

Add a compatibility route that redirects legacy tree links to the current Dag overview, preserving existing integration links while users migrate to the new URL format. The redirect also handles malformed links without a Dag ID by sending them to the Dag list.

closes: #72631


Was generative AI tooling used to co-author this PR?
  • Yes — Copilot (GPT-5)

Generated-by: Copilot (GPT-5) following the guidelines

External integrations still emit the Airflow 2 tree URL, which otherwise becomes a dead link in Airflow 3. Redirect that legacy URL to the current Dag overview so existing DataHub links remain usable.

Co-authored-by: Copilot <[email protected]>
@bbovenzi

Copy link
Copy Markdown
Contributor

The issues this connects to was marked as "not planned". We got rid of tree view so long ago. This seems like a bug acryl-datahub-airflow-plugin should fix. Not a one-off workaround in core airflow. Because tons of links to old airflow versions would also be broken.

@pierrejeambrun pierrejeambrun left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closing.

Related issue is marked as 'not planned'.

That could be documented in the upgrade path. We probably won't add compat for all possible AF2 links not working in AF3, that's part of the migration (plugin should be updated).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants