diff --git a/invenio/plugin/custom_invenio_plugin/__init__.py b/invenio/plugin/custom_invenio_plugin/__init__.py index b7f5c22..05e2a5c 100644 --- a/invenio/plugin/custom_invenio_plugin/__init__.py +++ b/invenio/plugin/custom_invenio_plugin/__init__.py @@ -3,13 +3,12 @@ from flask_menu import current_menu def init_app(app): - """Initialize the application and register the menu item.""" + """Initialize application.""" - @app.route("/amdmodel", endpoint="main.amdmodel") - @current_menu.route("About AM-D-Model") + @app.route("/amdmodel") + @current_menu.register(".main.amdmodel", "About AM-D-Model") def redirect_to_amdmodel(): """Redirect to the AM-D-Model website.""" return redirect("https://am-d-model.eu") return app -