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):
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.
Code: Select all
$this->pagination->setAdditionalURLParam("test", "foo"); $this->pagination->getListFooter();
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?