@staticmethod<EOL><INDENT>def get_redirect(request):<DEDENT>
params = request.GET.copy()<EOL>params.pop(TOKEN_NAME)<EOL>url = request.path<EOL>if params:<EOL><INDENT>url += '<STR_LIT:?>' + urlencode(params)<EOL><DEDENT>return redirect(url)<EOL>
Create a HTTP redirect response that removes the token from the URL.