src/Leevel/Page/Page.php
protected function getUrl(): string
    {
        if (null !== $this->cachedUrl) {
            return $this->cachedUrl;
        }

        $url = (string) ($this->option['url']);

        $parameter = $this->option['parameter'];

        if (isset($parameter[$this->option['page']])) {
            unset($parameter[$this->option['page']]);
        }

        if (false === strpos($url, '{page}')) {
            $parameter[$this->option['page']] = '{page}';
        }

        $this->cachedUrl = $url.
            (false === strpos($url, '?') ? '?' : '&').
            http_build_query($parameter, '', '&');

        return $this->cachedUrl .= $this->buildFragment();
    }
protected function getUrl(): string
    {
        if (null !== $this->cachedUrl) {
            return $this->cachedUrl;
        }

        $url = (string) ($this->option['url']);

        $parameter = $this->option['parameter'];

        if (isset($parameter[$this->option['page']])) {
            unset($parameter[$this->option['page']]);
        }

        if (false === strpos($url, '{page}')) {
            $parameter[$this->option['page']] = '{page}';
        }

        $this->cachedUrl = $url.
            (false === strpos($url, '?') ? '?' : '&').
            http_build_query($parameter, '', '&');

        return $this->cachedUrl .= $this->buildFragment();
    }
分析分页 url 地址.
{page} 表示自定义分页变量替换.

@return string