code: def make_redirect_url(self, path_info, query_args=None, domain_part=None):
          
          suffix = ""
          if query_args:
              suffix = "?" + self.encode_query_args(query_args)
          return str(
              "%s://%s/%s%s"
              % (
                  self.url_scheme or "http",
                  self.get_host(domain_part),
                  posixpath.join(
                      self.script_name[:-1].lstrip("/"), path_info.lstrip("/")
                  ),
                  suffix,
              )
          )
docs: Creates a redirect URL.
  
          :internal: