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:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user