Answer the question
In order to leave comments, you need to log in
How to remove the prefix page- from the page number?
Welcome all! Is it possible to somehow get rid of the prefix 'page-' from the page number in pagination?
For example, I now have a page of the form: /name-of-category/?page=page-1
And I need to bring it to this form: /name-of-category/?page=1
How pagination is implemented now: I
initialize the pagination class:
$pagination = new \Bitrix\Main\UI\PageNavigation("page");
$pagination->allowAllRecords(true)
->setPageSize(4)
->initFromUri();
\Bitrix\Iblock\Elements\ElementCatalogTable::getList();
$APPLICATION->IncludeComponent(
"bitrix:main.pagenavigation",
"",
array(
"NAV_OBJECT" => $pagination,
"SEF_MODE" => "N",
),
false
);
addParams(Web\Uri $uri, $sef, $page, $size = null)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question