How to configure CNC for LinkPager? Set the rule
[ 'pattern' => 'news/<page:\d+>', 'route' => '/news/index' ], In action:
$pages = new Pagination([ 'route' => 'news/', 'totalCount' => $countQuery->count(), 'pageSize' => self::PAGE_SIZE, 'forcePageParam' => false, 'pageSizeParam' => false, ]); Anyway LinkPager generates a link of the form
/ news? page = 2
In this case, the link itself is
/ news / 2
works.
What am I doing wrong?