# @aurelia/router update query params on same page

**URL:** <https://discourse.aurelia.io/t/aurelia-router-update-query-params-on-same-page/5307>\
**Category:** Uncategorized\
**Created:** [November 22, 2023, 4:43pm UTC](https://discourse.aurelia.io/t/aurelia-router-update-query-params-on-same-page/5307 "2023-11-22T16:43:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnnn](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/nnnn/32/2465_2.png) [@nnnn](https://discourse.aurelia.io/u/nnnn)\
**Post date:** [November 22, 2023, 4:43pm UTC](https://discourse.aurelia.io/t/aurelia-router-update-query-params-on-same-page/5307/1 "2023-11-22T16:43:38Z")

</div>

When I am at `/search?q=jbj` or a totally different page and I call

```auto
await this.router.load('search', {
                title: 'Search',
                parameters: {
                    q: this.query,
                },
            });

```

it works, but when I am at `/search` and I call the same function, it does not update the query params.

---

<div class="post-metadata">

**Author:** ![ivan](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/ivan/32/2022_2.png) [@ivan](https://discourse.aurelia.io/u/ivan)\
**Post date:** [November 23, 2023, 7:12am UTC](https://discourse.aurelia.io/t/aurelia-router-update-query-params-on-same-page/5307/2 "2023-11-23T07:12:34Z")

</div>

I had a similar question 🙂:

> [@Change URL parameters without involving lifecycles in Core Router](https://discourse.aurelia.io/t/change-url-parameters-without-involving-lifecycles-in-core-router/5155):
>
> I have a search page where a couple of filters can be added. Each time a filter is added I would like to add this to the url, to make it shareable. E.g. A user visits the page. url is my-url.com#search. The user clicks on a filter to active it. The url should be updated to my-url.com#search?filter-1=123 Now using something like this: import { IRouter } from '@aurelia/router' ... this.router.load('search', { parameters: { filter-1: '123' } }) The url can be changed. However, the pa…

Unfortunately, still do not know how to do this.
