Pagination - getListFooter() and additionalURLParams

Did you find a bug in Joomla! 3.x but aren't sure? This forum is the place to help figure out if the problem is a bug and how to report it. If you are an experienced Joomla! user and are certain that you have found a bug please use the Bug Tracker to submit your issue.
This forum is for discussion about bugs and to get help with reporting them to the Bug Tracker: https://issues.joomla.org

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
luke1410
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Sep 10, 2019 12:54 am

Pagination - getListFooter() and additionalURLParams

Post by luke1410 » Sat May 15, 2021 8:42 pm

Hi,

I'm investigating an issue with the pagination handling of a 3rd-party extension atm. For testing purposes I tried the following minimal example (on Joomla 3.9.26):

Code: Select all

$this->pagination->setAdditionalURLParam("test", "foo");
$this->pagination->getListFooter();
I would expect that the presented href-links in the generated footer html code would contain the set additional URLParam (as in: href="[...]?test=foo") but they don't.

Debugging through the joomla code I see that Pagination.php:getPaginationLinks() adds the data to the passed in list array ('pages' => $this->getPaginationPages()) which contains the link including the additional URLParams. However, when this is passed on to the default layout (joomla.pagination.links) which then renders the individual links using joomla.pagination.link, the template code there doesn't seem to bother about the list of added url parameters and doesn't use the data.

Am I overlooking anything, is it just an incorrect understanding of the pagination design (and omitting the added url parameters is working as intended/by design), or did I run into some bug/design issue in Joomla here?
If this is working as intended, what would be the best practice to work with additional url parameters? Specifying a custom layout which handles this?

Regards,
Stefan

Locked

Return to “Joomla! 3.x Bug Reporting”