# How can I reset sticky query params?

**URL:** <https://discuss.emberjs.com/t/how-can-i-reset-sticky-query-params/14522>\
**Category:** Routing\
**Created:** [April 12, 2018, 5:13pm UTC](https://discuss.emberjs.com/t/how-can-i-reset-sticky-query-params/14522 "2018-04-12T17:13:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex\_middeleer](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/alex_middeleer/32/12545_2.png) [@alex\_middeleer](https://discuss.emberjs.com/u/alex_middeleer)\
**Post date:** [April 12, 2018, 5:13pm UTC](https://discuss.emberjs.com/t/how-can-i-reset-sticky-query-params/14522/1 "2018-04-12T17:13:24Z")

</div>

This question is asked very frequently in Slack #-help, so I thought I would add it here.

---

<div class="post-metadata">

**Author:** ![alex\_middeleer](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/alex_middeleer/32/12545_2.png) [@alex\_middeleer](https://discuss.emberjs.com/u/alex_middeleer)\
**Post date:** [April 12, 2018, 5:18pm UTC](https://discuss.emberjs.com/t/how-can-i-reset-sticky-query-params/14522/2 "2018-04-12T17:18:19Z")

</div>

Currently the best, addon-free method is to use the resetController hook in the route. There’s more on this in the guide plus example code, but it’s often missed: [Query Parameters - Routing - Ember Guides](https://guides.emberjs.com/v3.0.0/routing/query-params/#toc_sticky-query-param-values).

For more complex use-cases, you may want to try using [GitHub - offirgolan/ember-parachute: Improved Query Params for Ember](https://github.com/offirgolan/ember-parachute).

Example code in case that link becomes unreachable:

```auto
import Route from '@ember/routing/route';

export default Route.extend({
  resetController(controller, isExiting, transition) {
    if (isExiting) {
      // isExiting would be false if only the route's model was changing
      controller.set('page', 1);
    }
  }
});

```
