Пагинация сбивается.

More
2 years 2 weeks ago #8939 by Vlad
Добрый день!

Подскажите, пожалуйста, как данный фильтр взаимодействует с пагинацией. Не могу разобраться.

Вводные.
Есть вывод материалов категории, например, по 10 штук на страницу. Всего материалов 100. Соответственно изначально вывод 10 страниц.
Пагинация стандартная:
Первая страница - .../материал/page-1
Вторая страница - .../материал/page-2
Третья страница - .../материал/page-3
и так далее.

Обернул компонент вывода материалов категории в #content (то есть в сейчас в этом контейнере находится и сам список материалов и пагинация).
Далее при применении фильтра видно, что количество страниц уменьшается (материалов с примененным фильтром меньше). НО (!) пагинация становится следующего вида:
Первая страница - .../материал
Вторая страница - .../материал/page-11
Третья страница - .../материал/page-21

То есть перескок через 10 страниц - и это равно количеству материалов на странице. Если выбрать количество материалов на странице 20, то пагинация при примененном фильтре будет следующая:
Первая страница - .../материал
Вторая страница - .../материал/page-21
Третья страница - .../материал/page-41

Кто -нибудь сталкивался с таким? Подскажите, пожалуйста, куда копать.

Дополнение.
В принципе, в моем случае можно было бы сделать костыль - при применении фильтра убирать пагинацию в принципе (через js). Но проблема в том, что при сбросе фильтра список материалов восстанавливается в первоначальном виде, а пагинация так и остается с неправильными ссылками.
Поэтому хотелось бы понять причину.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Last from the forum

    • psyllium fiber capsule manufacturing
    • Our process combines cutting-edge encapsulation technology and meticulous quality assurance, ensuring every capsule delivers optimal fiber content and efficacy. Rigorously tested for contaminants and uniformity, our capsules are trusted by leading wellness brands who value transparency, consumer safety, and nutritional performance.  
    • In English Forum / Component
    • Is Kamagra Oral Jelly Safe for Long-Term ED Treatm...
    • can be effective for treating erectile dysfunction, but its safety for long-term use depends on individual health factors and medical guidance. The active ingredient, sildenafil citrate, is generally well-tolerated when taken as prescribed. However, regular or prolonged use without a doctor’s supervision can increase the risk of side effects such as headaches, dizziness, indigestion, nasal congestion, and visual disturbances. For long-term treatment, it's important to consider the underlying cause of ED, such as cardiovascular issues, diabetes, or stress, and address it alongside medication. Using Kamagra Oral Jelly and occasionally and under medical advice may be safe for many men, but it should not be used as a permanent solution without medical oversight.
    • In Component / Afisha Joomla
    • greensocialteam
    • Su Hailin entered the Japanese AV industry under the stage name "Erina". After her debut, she attracted many haters who kept scolding her online. She held a "Face-to-face meeting with haters" in Mong Kok yesterday (May 10). Beforehand, she publicly named 9 black fans who often attacked her, hoping to meet and talk in person. However, the night before the event, Su Hailin stated on social media that the police opposed her holding the event on the street and that it would eventually have to be held in a party room. However, all the haters disappeared, and instead a large number of fans showed up to support her. Su Hailin also announced that a photo exhibition will be held next month, and haters are also welcome to visit.  
    • In Component / JL Mail
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.