          if self.offset <= 0:
              return None
  
          url = self.request.build_absolute_uri()
  
          if self.offset - self.limit <= 0:
              return remove_query_param(url, self.offset_query_param)
  
 
</s>
        url = replace_query_param(url, self.limit_query_param, self.limit)
          if self.offset <= 0:
              return None
  
          url = self.request.build_absolute_uri()
        url = replace_query_param(url, self.limit_query_param, self.limit)
  
          if self.offset - self.limit <= 0:
              return remove_query_param(url, self.offset_query_param)
  
keep keep keep add keep keep keep keep
 Include correct limits in LimitOffsetPagination link urls
rest_framework/pagination.py