fix: Update menu link href for Airflow 3 compatibility in MarkdownViewPlugin
This commit is contained in:
@@ -74,11 +74,11 @@ class MarkdownViewPlugin(AirflowPlugin):
|
||||
"url_prefix": "/markdown_view_plugin", # Required for Airflow 3 FastAPI plugins
|
||||
}
|
||||
]
|
||||
# Example menu link (optional, can also be configured via Airflow UI settings)
|
||||
menu_links = [
|
||||
# Airflow 3+ UI compatibility: use appbuilder_menu_items instead of menu_links
|
||||
appbuilder_menu_items = [
|
||||
{
|
||||
"name": "Markdown Viewer",
|
||||
"href": "/markdown_view_plugin_mount/markdown_view", # This should match the app_mount + @markdown_fastapi_app.get path for the UI
|
||||
"href": "/markdown_view_plugin/markdown_view", # This should match the url_prefix + @markdown_fastapi_app.get path for the UI
|
||||
"category": "Plugins",
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user