# Url query parameter sticks on all pages

**URL:** <https://forum.wixstudio.com/t/url-query-parameter-sticks-on-all-pages/20357>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [September 12, 2019, 10:14pm UTC](https://forum.wixstudio.com/t/url-query-parameter-sticks-on-all-pages/20357 "2019-09-12T22:14:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swamykh](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/swamykh/32/13965_2.png) [@swamykh](https://forum.wixstudio.com/u/swamykh)\
**Post date:** [September 12, 2019, 10:14pm UTC](https://forum.wixstudio.com/t/url-query-parameter-sticks-on-all-pages/20357/1 "2019-09-12T22:14:59Z")

</div>

I am appending a query parameter to a search page url like ?dest=india.  
This works well for the search page… but when i navigate to anyother page in the website, the query parameter ?dest=india is stuck on all the urls. This is really frustrating as i have done a lot coding for this, only to encounterthis issue… i really need to get this thing fixed ☹ can anybody help me with this.

Thankyou.

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [September 13, 2019, 12:05am UTC](https://forum.wixstudio.com/t/url-query-parameter-sticks-on-all-pages/20357/2 "2019-09-13T00:05:38Z")

</div>

You can do the following:  
On the relevant page - retrieve the parameter.  
Then write:

```javascript
import wixLocation from 'wix-location';
let destination = wixLocation.query.dest;//do what ever you want with it
wixLocation.to("/current-path?dest"); //It'll remove the params when you navigate to the next page

```

However, If you click back, it’ll behave as if there are 2 pages, first then one with the params and then the other without it;
