This commit is contained in:
Emmanuel Viennet 2021-10-16 19:31:14 +02:00
parent 256e89605b
commit bb7ed682c0

View File

@ -104,6 +104,8 @@ def make_menu(title, items, css_class="", alone=False):
item["urlq"] = url_for(
item["endpoint"], scodoc_dept=g.scodoc_dept, **args
)
elif "url" in item:
item["urlq"] = item["url"]
else:
item["urlq"] = "#"
item["attr"] = item.get("attr", "")