summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-03-15 13:58:09 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-03-15 13:58:09 +0000
commit56c78611fb2273018187f0eddad780b4501b2933 (patch)
tree1fc0b01e604e8baa72790528e74819e1dd4de19e /urls.py
parenta7660c8ec7d031adf2198725694ca1572269e9c9 (diff)
downloadtroggle-56c78611fb2273018187f0eddad780b4501b2933.tar.gz
troggle-56c78611fb2273018187f0eddad780b4501b2933.tar.bz2
troggle-56c78611fb2273018187f0eddad780b4501b2933.zip
enable /smkridge/ as /1623/ url
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/urls.py b/urls.py
index a32f2e1..22286b6 100644
--- a/urls.py
+++ b/urls.py
@@ -146,8 +146,10 @@ trogglepatterns = [
re_path(r'^(.*)_edit$', editexpopage, name="editexpopage"),
re_path(r'^(?P<karea>\d\d\d\d)(?P<subpath>.*)$', cavepage, name="cavepage"), # shorthand /1623/264 or 1623/161/top.htm
- # Note that urls eg '/1623/161/l/rl89a.htm' are handled by cavepage which redirects them to 'expopage' # Note that _edit$ for a cave description page in a subfolder e.g. /1623/204/204.html_edit gets caught here and breaks with 404
-
+ # Note that urls eg '/1623/161/l/rl89a.htm' are handled by cavepage which redirects them to 'expopage'
+ # Note that _edit$ for a cave description page in a subfolder e.g. /1623/204/204.html_edit gets caught here and breaks with 404
+ path('smkridge/<path:subpath>', cavepage, {'karea': "1623/"}, name="cavepage"),
+
# Entrances
re_path(r'^cave/entrance/([^/]+)/?$', caveEntrance), # lists all entrances !!!BAD, local links fail