Avoid query string passed along in rendering.
This middleware is a bit of a mess anyway, since it's basically using static files as templates. However, we definitely don't want to add any GET query parameters rendered into the path name.
This commit is contained in:
parent
e8b4681da3
commit
b48b1ab1e5
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ def fundgoal_lookup(fundraiser_sought):
|
|||
|
||||
def index(request, *args, **kwargs):
|
||||
# return HttpResponse("Hello, static world: " + request.get_full_path())
|
||||
path = request.get_full_path()
|
||||
path = request.path
|
||||
path = path.lstrip('/')
|
||||
if path[-1:] == '/':
|
||||
path += 'index.html'
|
||||
|
|
Loading…
Reference in a new issue