summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-11-12 01:23:20 +0200
committerPhilip Sargent <philip.sargent@gmail.com>2023-11-12 01:23:20 +0200
commitd2ee32d3e651c4fd9c06bc962ba1e2e9653c3fae (patch)
tree0814384bc2ca16042ce4a6616b455eb9a3f764e7 /urls.py
parent699c19245abe816bfde8cfe1a6f5ffe6af2fef60 (diff)
downloadtroggle-d2ee32d3e651c4fd9c06bc962ba1e2e9653c3fae.tar.gz
troggle-d2ee32d3e651c4fd9c06bc962ba1e2e9653c3fae.tar.bz2
troggle-d2ee32d3e651c4fd9c06bc962ba1e2e9653c3fae.zip
fixing side effects of the new cave url scheme
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index 5283849..a78167b 100644
--- a/urls.py
+++ b/urls.py
@@ -160,7 +160,7 @@ trogglepatterns = [
re_path(r'^(?P<path>.*)/(?P<caveslug>[^/]+)_entrance_new$', edit_entrance, name = "newentrance"), # new entrance for a cave
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
+ re_path(r'^(?P<karea>162\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