code: def redirect(self,
                   where: Optional[str] = None,
                   default: Optional[str] = None,
                   override: Optional[str] = None,
                   **url_kwargs):
          
          return redirect(where, default, override, _cls=self, **url_kwargs)
docs: Convenience method for returning redirect responses.
  
          :param where: A URL, endpoint, or config key name to redirect to.
          :param default: A URL, endpoint, or config key name to redirect to if
                          ``where`` is invalid.
          :param override: explicitly redirect to a URL, endpoint, or config key name
                           (takes precedence over the ``next`` value in query strings
                           or forms)
          :param url_kwargs: the variable arguments of the URL rule
          :param _anchor: if provided this is added as anchor to the URL.
          :param _external: if set to ``True``, an absolute URL is generated. Server
                            address can be changed via ``SERVER_NAME`` configuration
                            variable which defaults to `localhost`.
          :param _external_host: if specified, the host of an external server to
                                 generate urls for (eg https://example.com or
                                 localhost:8888)
          :param _method: if provided this explicitly specifies an HTTP method.
          :param _scheme: a string specifying the desired URL scheme. The `_external`
                          parameter must be set to ``True`` or a :exc:`ValueError`
                          is raised. The default behavior uses the same scheme as
                          the current request, or ``PREFERRED_URL_SCHEME`` from the
                          :ref:`app configuration <config>` if no request context is
                          available. As of Werkzeug 0.10, this also can be set
                          to an empty string to build protocol-relative URLs.