From 38d23fd76b79a0ebda1002b97a5b9b2941af6389 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sat, 18 Jun 2022 22:41:00 +0100 Subject: [PATCH] Attempting to fix utf8 urls by not type converting to string --- core/views/caves.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views/caves.py b/core/views/caves.py index 325c593..7217261 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -268,7 +268,7 @@ def cavepage(request, karea, subpath): except Cave.DoesNotExist: # 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. - return expo.expopage(request, str(kpath)) + return expo.expopage(request, kpath) except Cave.MultipleObjectsReturned: caves = Cave.objects.filter(url = kpath) # we should have a -several variant for the cave pages, not just the svxcaves: