Return back to page 1 when limit is more than
-
Hi, there is a bug on the product page. When I have, for example, a higher limit than it can enter on the page, it doesn't show me, all that goes on page 1, but it leaves me on page 3, for example.
For example
I am on page 3 and I want to display 56 products, they no longer appear.
I'm on page 1 and I want to act on 56 products, they appear.
I think the problem is from ProductRepository but I don't know what I could change exactly here$results = new LengthAwarePaginator($items, $count, $perPage, $page, [ 'path' => request()->url(), 'query' => request()->query(), ]); return $results;
-
Hi @LilD,
Can you share the request URL and page screenshot?
-
On products page when I try to make limit to 56 on page 5 -
Hi @LilD,
How many products do you have?
-
@devansh-webkul 150 i think
-
Then how it will come at page number 5 when all data with limit 56 ends at page number 3 or 2.
-
@devansh-webkul said in Return back to page 1 when limit is more than:
Then how it will come at page number 5 when all data with limit 56 ends at page number 3 or 2.
He will stay on page 5 ... can you give me some advice on how I can make a query return to page 3 when the products are like this?
Apparently if I have products over the limit and they stop on a page 2/3/4 the next page has no products to display, how could I go back?
@devansh-webkul