diff options
author | Martin Green <martin.speleo@gmail.com> | 2023-05-02 22:41:36 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2023-05-02 22:41:36 +0100 |
commit | ea7c29a54ec3293cc49f1e11a5bf72ca2b44c6eb (patch) | |
tree | 1039a1edf4a37600d1e7f2fbb256b204c6dcd536 /core/views | |
parent | 005238533331a4f8d281245f63ff02f858903594 (diff) | |
parent | 7f0e7d8fa3e4ce324a17151d5f76e8d3fdfa262b (diff) | |
download | troggle-ea7c29a54ec3293cc49f1e11a5bf72ca2b44c6eb.tar.gz troggle-ea7c29a54ec3293cc49f1e11a5bf72ca2b44c6eb.tar.bz2 troggle-ea7c29a54ec3293cc49f1e11a5bf72ca2b44c6eb.zip |
Merge branch 'master' of ssh://expo.survex.com/home/expo/troggle
Diffstat (limited to 'core/views')
-rw-r--r-- | core/views/caves.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/views/caves.py b/core/views/caves.py index 1ad8dcf..b5a13f4 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -281,12 +281,15 @@ def cavepage(request, karea, subpath): accessed by kataster area number specifically OR accessed by cave.url specifically set in data, e.g. - "1623/000/000.html" <= cave-data/1623-000.html + "1623/000/000" <= cave-data/1623-000.html "1623/41/115.htm" <= cave-data/1623-115.html so we have to query the database to fine the URL as we cannot rely on the url actually telling us the cave by inspection. + + NOTE that old caves have ".html" (or ".htm") in the URL as they used to be actual files. But since 2006 these URLs + refer to virtual pages generated on the fly by troggle, so the".html" is confusing and redundant. - There are A LOT OF URLS to e.g. /1623/161/l/rl89a.htm which are IMAGES and html files - in cave descriptions. These need to be handled HERE + There are also A LOT OF URLS to e.g. /1623/161/l/rl89a.htm which are IMAGES and real html files + in cave descriptions. These need to be handled HERE too (accident of history). """ kpath = karea + subpath # print(f" ! cavepage:'{kpath}' kataster area:'{karea}' rest of path:'{subpath}'") |