From b0744c4acb05460b78777ad34a9bc5c47e791476 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Thu, 8 May 2025 11:19:12 +0100 Subject: [PATCH] Plugin debugging --- invenio/plugin/custom_invenio_plugin/views.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/invenio/plugin/custom_invenio_plugin/views.py b/invenio/plugin/custom_invenio_plugin/views.py index d0dee7f..0a6976d 100644 --- a/invenio/plugin/custom_invenio_plugin/views.py +++ b/invenio/plugin/custom_invenio_plugin/views.py @@ -10,18 +10,13 @@ blueprint = Blueprint( def init_menu(): """Add custom items to main menu.""" current_menu.submenu("main").register( - "amdmodel", + id="amdmodel", text="About AM-D-Model", external_url="https://am-d-model.eu", order=0, ) -@blueprint.before_app_first_request -def init_menu_on_request(): - init_menu() - - @blueprint.route("/debug-menu") def debug_menu(): """Debug endpoint to view menu structure."""