Skip to content

[BUG] navigation to the next page doesn't work as expected. #85

Description

@Dzem-z

Description
In the catalog module, when user splits catalog list in two or more and then proceeds to enter next list, instead of being redirected to page 2 he is redirected to page 11. The problem is more general than that. When user is on the page X then he will be redirected to X1 instead of X + 1.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'admin/products' or 'admin/categories' or any other component inside catalog module.
  2. make sure there are enough items for the list to split into two parts or more.
  3. Click on right arrow with '>' icon in the "Show X per page" bar.
  4. 11th part of the list is displayed instead of 2.

Screenshots
Screenshot from 2024-01-25 14-41-21
Screenshot from 2024-01-25 14-41-31
Screenshot from 2024-01-25 14-41-50

Background:

  • NodeJS 20.10.0
  • Postgres 13.12
  • ShopMost v1.0.1 1d95be0
  • OS: Ubuntu 22.04
  • Browser: Chromium

probable cause of error
Somewhere in the code concatenation happens instead of addition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions