handlePageChange(e) {
    if (e?.state?.currentPattern) {
      this.navigateTo(e.state.currentPattern);
    } else {
      this.navigateTo(this.getPatternParam());
    }
  }
// navigate to the new PL page (based on the query string) when the page's pop state changes
navigate to the new PL page (based on the query string) when the page's pop state changes
navigate to the new PL page ( based on the query string ) when the page ' s pop state changes
handlePageChange(e) {
    if (e?.state?.currentPattern) {
      this.navigateTo(e.state.currentPattern);
    } else {
      this.navigateTo(this.getPatternParam());
    }
  }
handlePageChange ( e ) { if ( e ?. state ?. currentPattern ) { this . navigateTo ( e . state . currentPattern ) ; } else { this . navigateTo ( this . getPatternParam ( ) ) ; } }
navigate to the new PL page (based on the query string) when the page's pop state changes
navigate to the new PL page ( based on the query string ) when the page ' s pop state changes