public function getSegments($append_langcode = false, $path = '')
    {
        if (empty($path)) {
            $path = $this->path($append_langcode);
        }

        return explode('/', trim($path, '/'));
    }