From bb7ed682c0e03080fc2c2be7178bd16ea09b51d8 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 16 Oct 2021 19:31:14 +0200 Subject: [PATCH] Fixes #158 --- app/scodoc/htmlutils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/scodoc/htmlutils.py b/app/scodoc/htmlutils.py index cb3568752..68e835c3a 100644 --- a/app/scodoc/htmlutils.py +++ b/app/scodoc/htmlutils.py @@ -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", "")