Menu

#99 Pagination losing all URL arguments

2.1.2
closed
None
core
defect
trivial
core
2.1.1
2011-06-23
2011-06-16
No

Currently @paginate decorator uses tg.paginate.Page class which overrides the _pagerlink forgetting to add all the page arguments specified in link_params.

Link url is built as:
link_url = '%s?page=%s'%(link_url, pagenr)

only keeping knowledge of the page argument.

It should be changed to something like:
link_url = url(link_url, params=link_params)

Discussion