0

I updated news extension to version 9.0.0. Since the ViewHelper <n:widget.paginate> is no longer supported, I have changed the pagination related lines of list template to render the pagination partial as recommended. In the template pagination.html e.g. the next button gets created with following link:

href="{f:uri.action(action:actionName, arguments:{currentPage: pagination.nextPageNumber})}"

This works fine for the list of all news. Means without any category filter.

Problem is for category lists of news. If the first block of news of selected category gets displayed, the URL shows: "https://xyz.de/news/category1"

The pagination button 'next' does not point to the next page of the list of category news. It points to the next page of the complete list of all news ignoring the category filter: "https://xyz.de/news/page-2"

The expected link would be: "https://xyz.de/news/category1/page-2"

Is there anything I can do to get the correct pagination links?

Thanks and best regards Wulf

Amila Senadheera
  • 12,229
  • 15
  • 27
  • 43
Wulf
  • 1
  • 2

1 Answers1

0

You need to use the argument addQueryString:1 in the partial.

This has been fixed in EXT:news with the commit https://github.com/georgringer/news/commit/9297aa5602e167273e53910c0db81bb6fe102a9a

Georg Ringer
  • 7,779
  • 1
  • 16
  • 34
  • Thanks for Your answer. Without using routenhancer category-name this is working fine. However if routepath category-name will be used, the query argument overwriteDemand/categories is again not part of the paginator links anymore. Could this be an issue of routenhancer script or could it be an issue of Pagination partial? – Wulf Nov 09 '21 at 18:28
  • I created a new issue https://github.com/georgringer/news/issues/1640 and will check it out in the next days – Georg Ringer Nov 10 '21 at 06:13
  • can you please share your config in the issue? thanks a lot – Georg Ringer Nov 10 '21 at 14:47
  • My news related part ot the routenhancer is shared on https://github.com/georgringer/news/issues/1640 – Wulf Nov 11 '21 at 09:55