public function prefix(bool $forceBase = false): string
    {
        $pattern = \trim($this->prefix, '/');

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

        empty($pattern) && $pattern = '/';

        return $pattern;
    }