2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-03-12 19:36:36 +00:00

fix bad url in header menu

This commit is contained in:
2025-01-28 16:21:35 +00:00
parent 11cf61b0a3
commit 1f0a4806a2

View File

@@ -242,11 +242,12 @@ def expowebpage(request, expowebpath, path):
parent_caves = None
# Determine if this page relates to a particular year
year = current_expo()
m = re.search(r"years\/(\d\d\d\d)\/.*", path, re.DOTALL + re.IGNORECASE)
if m:
(year,) = m.groups()
else:
year = None
year = current_expo()
# Determine if this page is part of the troggle handbook
troggle = path.startswith("handbook/troggle")
@@ -262,6 +263,7 @@ def expowebpage(request, expowebpath, path):
"homepage": (path == "index.htm"),
"has_menu": has_menu,
"year": year,
"current_year": year,
"parent_caves": parent_caves,
"troggle": troggle,
},