benchmarks/scenarios/ember.js
function (path) {
      var state = this.getState();
      path = this.formatURL(path);

      if (!state || state.path !== path) {
        this.replaceState(path);
      }
    }
function (path) {
      var state = this.getState();
      path = this.formatURL(path);

      if (!state || state.path !== path) {
        this.replaceState(path);
      }
    }
function ( path ) { var state = this . getState ( ) ; path = this . formatURL ( path ) ; if ( ! state || state . path !== path ) { this . replaceState ( path ) ; } }
Uses `history.replaceState` to update the url without a page reload
or history modification.
@private
@method replaceURL
@param path {String}
Uses history . replaceState to update the url without a page reload or history modification .