Skip to content

Kirby 4.2.0

$responder->redirect()

Shortcut to create a redirect response

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

Parameters

Name Type Default
$location string|null null
$code int|null 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