mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 12:27:10 +00:00
Attempting to fix utf8 urls by not type converting to string
This commit is contained in:
@@ -268,7 +268,7 @@ def cavepage(request, karea, subpath):
|
|||||||
except Cave.DoesNotExist:
|
except Cave.DoesNotExist:
|
||||||
# probably a link to text or an image e.g. 1623/161/l/rl89a.htm i.e. an expoweb page
|
# probably a link to text or an image e.g. 1623/161/l/rl89a.htm i.e. an expoweb page
|
||||||
# cannot assume that this is a simple cave page, for a cave we don't know.
|
# cannot assume that this is a simple cave page, for a cave we don't know.
|
||||||
return expo.expopage(request, str(kpath))
|
return expo.expopage(request, kpath)
|
||||||
except Cave.MultipleObjectsReturned:
|
except Cave.MultipleObjectsReturned:
|
||||||
caves = Cave.objects.filter(url = kpath)
|
caves = Cave.objects.filter(url = kpath)
|
||||||
# we should have a -several variant for the cave pages, not just the svxcaves:
|
# we should have a -several variant for the cave pages, not just the svxcaves:
|
||||||
|
|||||||
Reference in New Issue
Block a user