Pagination links don't work properly on pages that is set as the front page

Created on 4 September 2012, about 12 years ago
Updated 22 November 2023, about 1 year ago

If I use the clean pagination on a path that is configured as the front page then the generated links will not work.

My scenario:
1) I have a Views page with the path "/my-view-page". The path is also configured as the front page ("/").
2) The path "/my-view-page" is set in cleanpager_pages.
3) The cleanpager pagination will generate links like this: /page/3.
4) But if I request this page, I get a 404 error.
5) The url /my-view-page/page/3 is working.

In the new version of the cleanpager module is the drupal front page setting used to generate the links (cleanpager_theme_pager_link). That was not in the previous versions. There is always the system path (/my-view-page) was used.

But this scenario is apparently not considered when resolving the URL (cleanpager_init). If I request the page as in step 4 the path variable is empty. In step 5 the path variable has the correct path from "cleanpager_pages" and the function works correctly.

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇩🇪Germany cbeier

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024