title: How to trigger back button from Ionic5 code
body: <p>I need to trigger the same function and the back button in the nav menu would trigger from code.</p>
  <pre><code>    &lt;ion-buttons slot=&quot;start&quot;&gt;
        &lt;ion-back-button&gt;&lt;/ion-back-button&gt;
      &lt;/ion-buttons&gt;
  </code></pre>
  <p>I am currently using</p>
  <pre><code>    this.router.navigate(['/previousPage', {
          demoMode: false
      }]);
  </code></pre>
  <p>but there is a weird inconsistency with D3 on the start view that does not occur with the back button yet happens with the <code>router</code>. I just do not know which function the back button triggers in the background. Guess it must be something similar to <code>navCtrl.pop</code> ?</p>