def METHOD_NAME(self, request, response):
    response = super(CommonMiddlewareAppendSlashWithoutRedirect, self).METHOD_NAME(request, response)
    if isinstance(response, HttpSmartRedirectResponse):
        if not request.path.endswith('/'):
            request.path = request.path + '/'
        # we don't need query string in path_info because it's in request.GET already
        request.path_info = request.path
        response = self.handler.get_response(request)
    return response