Skip to content

Kirby 6.0.0

DrawerResponse::redirect()

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

DrawerResponse::redirect(string $location = '/', int $code = 302, bool $inherit = false): DrawerResponse

Parameters

Name Type Default Description
$location string '/'
$code int 302
$inherit bool false Keep the query and params of the current request (since 5.7.0)

Return type

Kirby\Panel\Response\DrawerResponse

Parent class

Kirby\Panel\Response\DrawerResponse inherited from Kirby\Http\Response