code: def get_full_path(request, remove_querystrings=[]):
      
  
      path = request.get_full_path()
      for qs in remove_querystrings:
          path = re.sub(r'&?' + qs + '=?(.+)?&?', '', path)
      return path
docs: Gets the current path, removing specified querstrings