code: def get_view_url(self):
          
          request = self.request
          url = request.getURL()
          qs = request.getHeader("query_string")
          if not qs:
              return url
          return "{}?{}".format(url, qs)
docs: Return the current view url including request parameters