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