initializeRouteFromUrl() {
      this.recordMetrics(window.location.pathname);

      assert(!this.initializeRouteFromUrlCalled_);
      this.initializeRouteFromUrlCalled_ = true;

      const route = this.getRouteForPath(window.location.pathname);
      // Never allow direct navigation to ADVANCED.
      if (route && route != this.routes_.ADVANCED) {
        this.currentRoute = route;
        this.currentQueryParameters_ =
            new URLSearchParams(window.location.search);
      } else {
        window.history.replaceState(undefined, '', this.routes_.BASIC.path);
      }
    }
/**
     * Initialize the route and query params from the URL.
     */
Initialize the route and query params from the URL.
Initialize the route and query params from the URL .
initializeRouteFromUrl() {
      this.recordMetrics(window.location.pathname);
      assert(!this.initializeRouteFromUrlCalled_);
      this.initializeRouteFromUrlCalled_ = true;
      const route = this.getRouteForPath(window.location.pathname);
      if (route && route != this.routes_.ADVANCED) {
        this.currentRoute = route;
        this.currentQueryParameters_ =
            new URLSearchParams(window.location.search);
      } else {
        window.history.replaceState(undefined, '', this.routes_.BASIC.path);
      }
    }
initializeRouteFromUrl ( ) { this . recordMetrics ( window . location . pathname ) ; assert ( ! this . initializeRouteFromUrlCalled_ ) ; this . initializeRouteFromUrlCalled_ = true ; const route = this . getRouteForPath ( window . location . pathname ) ; if ( route && route != this . routes_ . ADVANCED ) { this . currentRoute = route ; this . currentQueryParameters_ = new URLSearchParams ( window . location . search ) ; } else { window . history . replaceState ( undefined , '' , this . routes_ . BASIC . path ) ; } }
Initialize the route and query params from the URL.
Initialize the route and query params from the URL .
// Never allow direct navigation to ADVANCED.