# Doing a search when we have paginated to a different page, doesn't reset the current page

**URL:** <https://community.forestadmin.com/t/doing-a-search-when-we-have-paginated-to-a-different-page-doesnt-reset-the-current-page/4833>\
**Category:** Help me!\
**Created:** [June 16, 2022, 7:36am UTC](https://community.forestadmin.com/t/doing-a-search-when-we-have-paginated-to-a-different-page-doesnt-reset-the-current-page/4833 "2022-06-16T07:36:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KamilH](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/kamilh/32/4363_2.png) [@KamilH](https://community.forestadmin.com/u/KamilH)\
**Post date:** [June 16, 2022, 7:36am UTC](https://community.forestadmin.com/t/doing-a-search-when-we-have-paginated-to-a-different-page-doesnt-reset-the-current-page/4833/1 "2022-06-16T07:36:20Z")

</div>

## Feature(s) impacted

> Default get all items route

## Observed behavior

> I’ve a dozen of pages when I’m clicking on my collections. Around 170 items are loaded. I’ve been paginating for few pages and have arrived on the 6th page. Then, I did a search using the upper searchbar and an error occured saying “Page 6 doesn’t exist”. I’ve noticed it was due to the fact that the current page was still provided when doing a search.

## Expected behavior

> When doing a search, the page should be reset.

## Context

> - Project name: Back Office TR
> - Team name: [the-ring.io](http://the-ring.io/)
> - Environment name: Development

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [June 16, 2022, 9:23am UTC](https://community.forestadmin.com/t/doing-a-search-when-we-have-paginated-to-a-different-page-doesnt-reset-the-current-page/4833/2 "2022-06-16T09:23:34Z")

</div>

Hello @KamilH,

Thanks for reaching out 🙌

You’re totally right.  
We noticed this issue a few days ago, and the fix has been released just now!  
Can you refresh your browser page and tell me if it’s working again?

Thanks!

---

<div class="post-metadata">

**Author:** ![KamilH](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/kamilh/32/4363_2.png) [@KamilH](https://community.forestadmin.com/u/KamilH)\
**Post date:** [June 16, 2022, 9:34am UTC](https://community.forestadmin.com/t/doing-a-search-when-we-have-paginated-to-a-different-page-doesnt-reset-the-current-page/4833/3 "2022-06-16T09:34:55Z")

</div>

Hello,

Thanks for that quick reply.  
I’ve refreshed my browser and it indeed works !

Best regards,
