diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-03-15 14:22:21 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-03-15 14:22:21 +0000 |
commit | 98066591dacdffb4ff33d30bc1cd341bc6f3f229 (patch) | |
tree | dbb13ca29f88d9825b08311bcf3a057f368d4109 | |
parent | 56c78611fb2273018187f0eddad780b4501b2933 (diff) | |
download | troggle-98066591dacdffb4ff33d30bc1cd341bc6f3f229.tar.gz troggle-98066591dacdffb4ff33d30bc1cd341bc6f3f229.tar.bz2 troggle-98066591dacdffb4ff33d30bc1cd341bc6f3f229.zip |
More archaic URLs re-enabled
-rw-r--r-- | urls.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -148,7 +148,13 @@ trogglepatterns = [ 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 + + # These re-enable archaic URLs which are in old web pages which are still public on other servers path('smkridge/<path:subpath>', cavepage, {'karea': "1623/"}, name="cavepage"), + path('expo/smkridge/<path:subpath>', cavepage, {'karea': "1623/"}, name="cavepage"), + + # Archaic, kept. This /expo/ prefix only works for expoweb HTML pages not troggle pages + path('expo/<path:path>', expopage, name="expopage"), # Entrances re_path(r'^cave/entrance/([^/]+)/?$', caveEntrance), # lists all entrances !!!BAD, local links fail |