src/Core/Request.php
public function route(bool $dropIndex = false): string
    {
        if ($dropIndex) {
            if ('index' == $this->route) {
                return '';
            }
        }
        return $this->route;
    }
public function route(bool $dropIndex = false): string
    {
        if ($dropIndex) {
            if ('index' == $this->route) {
                return '';
            }
        }
        return $this->route;
    }
URL path without language code, package name and an optional query parameters.

@param bool $dropIndex
@return string