function transitionToParams(params) {
  const location = this.props.location;
  const allParams = Object.assign({}, location.query, params);
  const keys = Object.keys(allParams);

  let url = location.pathname;
  if (keys.length) {
    url += `?${keys.map(key => `${key}=${encodeURIComponent(allParams[key])}`).join('&')}`;
  }

  this.context.router.transitionTo(url);
}

export default transitionToParams;

function transitionToParams(params) {
  const location = this.props.location;
  const allParams = Object.assign({}, location.query, params);
  const keys = Object.keys(allParams);

  let url = location.pathname;
  if (keys.length) {
    url += `?${keys.map(key => `${key}=${encodeURIComponent(allParams[key])}`).join('&')}`;
  }

  this.props.history.push(url);
}

export default transitionToParams;

Use API from released version of react-router v4 STRIPES-173
Use API from released version of react-router v4 STRIPES-173
