Change request.request_uri to request.url