I am trying to remove query params from url on a user action, using react-router-redux. On user action I am dispatching the following action:
dispatch(push({
pathname: url,
search: ''
});
But this is not removing the query param from url. What are the other ways to achieve this?