public function prefix($forceBase = false)
    {
        if (!is_string($this->prefix)) {
            return '/';
        }
        $pattern = trim($this->prefix, '/');

        if ($this->domain === null && $forceBase === true) {
            $pattern = trim($this->basePrefix, '/') . "/{$pattern}";
            $pattern = trim($pattern, '/');
        }
        empty($pattern) && $pattern = '/';
        return $pattern;
    }