send user back to the same page before changing the display language.

This commit is contained in:
Andreas Kotowicz
2011-11-27 09:43:51 +01:00
parent 5a92dafbdc
commit eaf78115d2
3 changed files with 7 additions and 3 deletions

View File

@ -132,5 +132,9 @@ def view_ticket(request):
}))
def change_language(request):
return_to = ''
if request.GET.has_key('return_to'):
return_to = request.GET['return_to']
return render_to_response('helpdesk/public_change_language.html',
RequestContext(request, {}))
RequestContext(request, {'next': return_to}))