DialogResponse::redirect()
Creates a redirect response, which will send the visitor to the given location.
DialogResponse::redirect(string $location = '/', int $code = 302, bool $inherit = false): DialogResponse
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\DialogResponse
Parent class
Kirby\Panel\Response\DialogResponse
inherited from Kirby\Http\Response