Application Framework Reference

Controller API

redirect_to_url()

The redirect_to_url() method is a convenience method, wrapping a call to cherrypy.HTTPRedirect() with the redirect URI.

Synopsis

redirect_to_url( *target , **kwargs )

Parameters

target

String

Redirection target.

kwargs

Object

[OPTIONAL] keyword-value pair dictionary representing the query string to include with redirection.

Return Value

Undefined

Raises

cherrypy.HTTPRedirect(self.make_url( *target , **kwargs ))

Example

   self.redirect_to_url('/api/search/jobs', job_id=1234)
 

See Also

render_template()
redirect_to_route()
cherrypy.HTTPRedirect()