replaceWith(newPage) {
      this.updateHistory(newPage, true /* replaceState */);
      if (this.previousPage_ && isPageStateEqual(this.previousPage_, newPage)) {
        // Skip the duplicate history entry.
        history.back();
        return;
      }
      this.notifyRouteChanged_(newPage);
    }
/**
     * @param {!PageState} newPage the page to replace the current page with.
     */
@param {!PageState} newPage the page to replace the current page with.
@param { !PageState } newPage the page to replace the current page with .
replaceWith(newPage) {
      this.updateHistory(newPage, true );
      if (this.previousPage_ && isPageStateEqual(this.previousPage_, newPage)) {
        history.back();
        return;
      }
      this.notifyRouteChanged_(newPage);
    }
replaceWith ( newPage ) { this . updateHistory ( newPage , true ) ; if ( this . previousPage_ && isPageStateEqual ( this . previousPage_ , newPage ) ) { history . back ( ) ; return ; } this . notifyRouteChanged_ ( newPage ) ; }
@param {!PageState} newPage the page to replace the current page with.
@param { !PageState } newPage the page to replace the current page with .
/* replaceState */ // Skip the duplicate history entry.