public function redirectPath($path, array $query = [], $fragment = '', $permanent = false, $rewrite = false)
    {
        $location = new Message\Uri($this->request->pathToString($path, $rewrite));
        $location = $location->withQuery($this->buildQuery($query))
            ->withFragment($fragment);
        return Message\Response::redirect($location, $permanent);
    }