title: Angular 7 Losing state when using the forward button to navigate
body: <p>I have an angular 7 ionic application.  I navigate to a page using the following code:</p>
  
  <pre><code>navigateToDetail(entity: User) {
  
    const navigationExtras: NavigationExtras = {
      state: {
        entity,
        entityId: entity.id
      }
    };
  
    this.router.navigate([RouteNames.users, entity.id], navigationExtras);
  }
  </code></pre>
  
  <p>In my detail-page-base I obtain the routing parameters like so:</p>
  
  <pre><code>constructor(protected route: ActivatedRoute, protected router: Router, protected baseProvider: ApiResourceBaseService&lt;T&gt;) {
    this.route.queryParams.subscribe(params =&gt; {
      if (this.router.getCurrentNavigation().extras.state) {
        this.entity = this.router.getCurrentNavigation().extras.state.entity;
      }
    });
  }
  </code></pre>
  
  <p>This works fine normally, however if I go back using the browser, and then forward,  the parameters are empty.  </p>
  
  <p>How do I handle navigation in angular 7?    </p>