Normally I use these function for first search parameter.
history.push({
pathname: props.location.pathname,
search: "nice=yes"
})
and after these history.push link looks like this -> x.com/title?nice=yes
But I can't add more search query. When i try to add new key only old key change.
For example my link is x.com/title?nice=yes
and i add second search when page change, query looks like this;
history.push({
pathname: props.location.pathname,
search: "page=10"
})
But it changes first parameter.
I want add multiple parameters like this: x.com/title?page=10&nice=yes