Skip to content

Wrong pagination link list when found result is zero #2

@GooDer

Description

@GooDer

range.push(last)

When we have zero found items we are automatically adding "0" to pagination.

Result is then something like this:
1 ... 0 Next

In this case I think neither 0 nor Next is correct there since there is just one blank page.

Parameters:
page=1
count=0
perPage=10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions