Skip to content

Get actual pagination range when picking file #8

@404-html

Description

@404-html

Current implementation assumes that search always have 100 pages of results.

image

fetchSearchResults() method on index.js file sets p (page) parameter as follows:

Math.floor(Math.random() * 100) + 1) // random page number from 1 to 100

It would be safer to pick page from actual range instead of relying on static number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions