Skip to content

Kirby 5.0.4

$responder->redirect()

Shortcut to create a redirect response

$responder->redirect(string|null $location = null, int|null $code = null): Kirby\Cms\Responder

Parameters

Name Type Default
$location stringornull null
$code intornull null

Return type

Kirby\Cms\Responder

This method modifies the existing $responder object it is applied to and returns it again.

Parent class

Kirby\Cms\Responder