Pagination issues (with Language Filter)

Power Uploader
Joined
Jan 18, 2018
Messages
178
(side note: we really need a template for bug reports)

Description:
Pagination does not adjust its query when the requested pagination position exceeds the result count for the query.

Summary:
If the current page request exceeds the results returned by the query, pagination does not adjust to display the nearest results. As an example, If I go to
Code:
https://mangadex.org/title/24219/touma-kun/chapters/15
, but the maximum pagination is actually
Code:
https://mangadex.org/title/24219/touma-kun/chapters/1
, the [no chapters available] message is returned. The expected result is that the request would automatically be redirected to the maximum pagination value.

Though this may be considered an edge case at first glance, this impacts instances where a user without the Language Filter enabled shares a specific chapter-series page link with a user that does have the Language Filter enabled.

To provide a further example, this link (https://mangadex.org/title/1958/hajime-no-ippo/chapters/57/) was shared in the Discord channel. However, if a user whose Language Filter is set to "English Only" clicks this link, they will receive the [no chapters available] message. This is because the pagination query is only returning English chapters, and the amount of English chapters do not reach a value where a
Code:
57
th pagination section would exist.
 

Users who are viewing this thread

Top