?
avatar ztj1993
ztj1993
17 Jul 2017

The following content comes from software translation!

Today, when analyzing Joomla class JPagination, it is found that the JPagination produced by link has not been built by router's build; This resulted in my custom router plug-in unable to process the path of Pagination, The paging path is not up to expectations; Has it been improved here to allow paging URL to be built by build?

The path I want:
http://domain/alias/16.html
http://domain/alias/16.html?start=10

Present path:
http://domain/alias/16.html
http://domain/alias.html?id=16&start=10

https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/pagination/pagination.php line 825
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/application/route.php line 56

The above translation may not be accurate, please forgive me.

avatar ztj1993 ztj1993 - open - 17 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jul 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Jul 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Jul 2017
Category Router / SEF
avatar ggppdk
ggppdk - comment - 24 Jul 2017

Yes, but it does not need to go through router build,
since Jroute will use current URL

You should check how the
&id=16

gets added to the URL, e.g.

-- you maybe using
$pageNav->setAdditionalUrlParam('id', 16);

-- or your current URL is
http://domain/alias.html?id=16

Please note that other components do not suffer from this issue,
so you should think what you are doing differently

avatar franz-wohlkoenig franz-wohlkoenig - change - 24 Jul 2017
Status New Discussion
avatar ztj1993 ztj1993 - change - 24 Jul 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-07-24 08:42:07
Closed_By ztj1993
avatar ztj1993 ztj1993 - close - 24 Jul 2017

Add a Comment

Login with GitHub to post a comment