summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index d0f504d..79d37fe 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -138,6 +138,7 @@ def pubspage(request):
This is a placeholder, we need to do something like what is done in indexpage() below...
"""
expowebpath = Path(settings.EXPOWEB)
+ print("--redirecting from pubspage()")
return expowebpage(request, expowebpath, "pubs.htm")
def indexpage(request):
@@ -146,6 +147,7 @@ def indexpage(request):
This edits the most recent year on the fly..
This now works.
"""
+ print("--redirecting from indexpage()")
subpath = Path(settings.EXPOWEB) / "index00.htm"
with open(subpath, "r") as o:
html = o.read()
@@ -155,6 +157,9 @@ def indexpage(request):
def expowebpage(request, expowebpath, path):
"""Adds menus and serves an HTML page"""
+ if path == "" or path == "index.htm":
+ return indexpage(request)
+
if not os.path.isfile(expowebpath / path):
# Should not get here if the path has suffix "_edit"
print(f" - 404 error in expowebpage() {path}")