mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 13:41:56 +00:00
23 lines
488 B
Python
23 lines
488 B
Python
from flask import Blueprint, redirect
|
|
|
|
blueprint = Blueprint(
|
|
"custom_invenio_plugin",
|
|
__name__,
|
|
)
|
|
|
|
|
|
def init_main_menu():
|
|
from flask_menu import current_menu
|
|
|
|
current_menu.submenu("main").register(
|
|
"custom_invenio_plugin.redirect_to_amdmodel",
|
|
text="About AM-D-Model",
|
|
order=0,
|
|
)
|
|
|
|
|
|
@blueprint.route("/redirect-to-amdmodel")
|
|
def redirect_to_amdmodel():
|
|
"""Redirect to the AM-D-Model website."""
|
|
return redirect("https://am-d-model.eu")
|