fix redirects with noscript
This commit is contained in:
parent
07c6c11373
commit
604f8c3be5
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ def sidebar_view(func):
|
|||
response.write('<a data-changeset href="%s">%s</a>' % (request.changeset.get_absolute_url(),
|
||||
escape(request.changeset.count_display)))
|
||||
return response
|
||||
if isinstance(response, HttpResponseRedirect):
|
||||
return response
|
||||
return render(request, 'editor/map.html', {'content': response.content})
|
||||
return never_cache(with_ajax_check)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue