Skip to content

Kirby 4.4.1

Response::redirect()

Creates a redirect response, which will send the visitor to the given location.

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

Parameters

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

Return type

Kirby\Http\Response

Parent class

Kirby\Http\Response