# Redirect

The Redirect exception can be thrown in all Fiber routes to send a redirect response. It is primarily used in `Panel::go($location)`

****

- Full class name: `Kirby\Panel\Redirect`
- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Panel/Redirect.php#L20>

****

### Redirect

- [new Redirect()](https://getkirby.com/docs/reference/objects/panel/redirect/__construct.md)
- [$redirect->__toString()](https://getkirby.com/docs/reference/objects/panel/redirect/__to-string.md)
- [$redirect->__wakeup()](https://getkirby.com/docs/reference/objects/panel/redirect/__wakeup.md)
- [$redirect->code()](https://getkirby.com/docs/reference/objects/panel/redirect/code.md)
- [$redirect->getCode()](https://getkirby.com/docs/reference/objects/panel/redirect/get-code.md)
- [$redirect->getFile()](https://getkirby.com/docs/reference/objects/panel/redirect/get-file.md)
- [$redirect->getLine()](https://getkirby.com/docs/reference/objects/panel/redirect/get-line.md)
- [$redirect->getMessage()](https://getkirby.com/docs/reference/objects/panel/redirect/get-message.md)
- [$redirect->getPrevious()](https://getkirby.com/docs/reference/objects/panel/redirect/get-previous.md)
- [$redirect->getTrace()](https://getkirby.com/docs/reference/objects/panel/redirect/get-trace.md)
- [$redirect->getTraceAsString()](https://getkirby.com/docs/reference/objects/panel/redirect/get-trace-as-string.md)
- [$redirect->location()](https://getkirby.com/docs/reference/objects/panel/redirect/location.md)
- [$redirect->refresh()](https://getkirby.com/docs/reference/objects/panel/redirect/refresh.md)