public function getBaseSlug()
    {
        $slug = $this->slug;

        if (substr($slug, -6) == '/index') {
            $slug = rtrim($slug, 'index');
        }

        return $slug;
    }
public function getBaseSlug()
    {
        $slug = $this->slug;

        if (substr($slug, -6) == '/index') {
            $slug = rtrim($slug, 'index');
        }

        return $slug;
    }
public function getBaseSlug ( ) { $ slug = $ this -> slug ; if ( substr ( $ slug , - 6 ) == '/index' ) { $ slug = rtrim ( $ slug , 'index' ) ; } return $ slug ; }
Get slug without index appended.

@return string
Get slug without index appended .