From 309ef8dc95d450df65a7f81fdcef1ad465f0f1ae Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 13 Dec 2025 11:10:42 +0100 Subject: [PATCH] Fix pagination in short-url:list command --- module/CLI/src/Command/ShortUrl/ListShortUrlsCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/CLI/src/Command/ShortUrl/ListShortUrlsCommand.php b/module/CLI/src/Command/ShortUrl/ListShortUrlsCommand.php index 2882c839..fd2d552a 100644 --- a/module/CLI/src/Command/ShortUrl/ListShortUrlsCommand.php +++ b/module/CLI/src/Command/ShortUrl/ListShortUrlsCommand.php @@ -12,6 +12,7 @@ use Shlinkio\Shlink\Core\Domain\Entity\Domain; use Shlinkio\Shlink\Core\ShortUrl\Entity\ShortUrl; use Shlinkio\Shlink\Core\ShortUrl\Model\ShortUrlsParams; use Shlinkio\Shlink\Core\ShortUrl\Model\ShortUrlWithDeps; +use Shlinkio\Shlink\Core\ShortUrl\Model\Validation\ShortUrlsParamsInputFilter; use Shlinkio\Shlink\Core\ShortUrl\ShortUrlListServiceInterface; use Shlinkio\Shlink\Core\ShortUrl\Transformer\ShortUrlDataTransformerInterface; use Symfony\Component\Console\Attribute\AsCommand; @@ -48,6 +49,7 @@ class ListShortUrlsCommand extends Command $columnsMap = $this->resolveColumnsMap($input); do { + $data[ShortUrlsParamsInputFilter::PAGE] = $page; $result = $this->renderPage($io, $columnsMap, ShortUrlsParams::fromRawData($data), $paramsInput->all); $page++;