Skip to content

Kirby 6.0.0

$responder->redirect()

Shortcut to create a redirect response

$responder->redirect(string|null $location = null, int|null $code = null, bool $inherit = false): Responder

Parameters

Name Type Default Description
$location stringornull null
$code intornull null
$inherit bool false Keep the query and params of the current request (since 5.7.0)

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