public function getCurrentPath()
    {
        $this->pathSegments = array_slice($this->pathSegments, 0, $this->pathLength);

        return $this->pathLength ? '/'.implode('/', $this->pathSegments) : '';
    }