Skip to content

Kirby 4.5.0

Response::redirect()

Adjusted redirect creation which parses locations with the Url::to method first.

Response::redirect(string $location = '/', int $code = 302): Kirby\Cms\Response

Parameters

Name Type Default
$location string '/'
$code int 302

Return type

Kirby\Cms\Response

Parent class

Kirby\Cms\Response