public function parse(&$segments)
    {
        $active = $this->menu->getActive();
        $vars = [];

        if (!empty($active)) {
            $vars = $active->query;
        }

        return array_merge(
            $vars,
            array(
                'path' => implode('/', $segments)
            )
        );
    }