summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2025-01-28 16:21:35 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2025-01-28 16:21:35 +0000
commit1f0a4806a2e92b38a2bf326024294629be590e7f (patch)
tree555d33b13dcf7b30063db49aa2eebe203e66dacf
parent11cf61b0a340ff102e843655a7c408f0a4e3c16f (diff)
downloadtroggle-1f0a4806a2e92b38a2bf326024294629be590e7f.tar.gz
troggle-1f0a4806a2e92b38a2bf326024294629be590e7f.tar.bz2
troggle-1f0a4806a2e92b38a2bf326024294629be590e7f.zip
fix bad url in header menu
-rw-r--r--core/views/expo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 9089481..4c1ce63 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -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,
},