src/Viserio/Component/Pagination/AbstractPaginator.php
public function getUrl(int $page): string
    {
        if ($page <= 0) {
            $page = 1;
        }

        // Extra information like sortings storage.
        $parameters = [$this->pageName => $page];

        if (\count($this->query) > 0) {
            $parameters = \array_merge($this->query, $parameters);
        }

        $url = $this->path;
        $url .= (\mb_strpos($this->path, '?') !== false ? '&' : '?');
        $url .= \http_build_query($parameters, '', '&');
        $url .= $this->buildFragment();

        return $url;
    }
public function getUrl(int $page): string
    {
        if ($page <= 0) {
            $page = 1;
        }

        // Extra information like sortings storage.
        $parameters = [$this->pageName => $page];

        if (\count($this->query) > 0) {
            $parameters = \array_merge($this->query, $parameters);
        }

        $url = $this->path;
        $url .= (\mb_strpos($this->path, '?') !== false ? '&' : '?');
        $url .= \http_build_query($parameters, '', '&');
        $url .= $this->buildFragment();

        return $url;
    }
{@inheritdoc}