Skip to content

Content Manager pagination is broken as of 5.0.3 #21789

@derrickmehaffy

Description

@derrickmehaffy

Bug report

Required System information

  • Node.js version: v20
  • NPM version: yarn v1
  • Strapi version: 5.0.4 and 5.0.3
  • Database: SQLite
  • Operating system: Linux Mint 21.2
  • Is your project Javascript or Typescript: Javascript

Describe the bug

When paginating within the content-manager, changes pages yields an invalid admin REST Query:

http://localhost:1337/content-manager/collection-types/api::article.article?[object%20Object]?page=2&pageSize=10&sort=title%3AASC

Specifically the problem is here: [object%20Object]?page=2

Steps to reproduce the behavior

  1. Create a content-type with any field
  2. Create more than 10 entries
  3. Try to paginate
  4. See error

Expected behavior

Should paginate properly :)

Screenshots

Reproduction video:

https://www.loom.com/share/c5a773d26cb74308b920e6df0235a9c7?sid=50da458d-2463-4147-a048-661efeb8eab4

Code snippets

N/A

Additional context

N/A

Metadata

Metadata

Assignees

Labels

issue: bugIssue reporting a bugseverity: criticalIf the issue has a security impact or breaks core usage of the productsource: core:content-managerSource is core/content-manager packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersversion: 5Issue is present in Strapi 5

Type

No type

Projects

Status

Fixed/Shipped

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions