title: How to remove particular page from modal stack?
body: <p>I have four pages page 1-page 2-page 3-page 4.I use push modal async for navigating forward. When I tap button click in page 4 it is navigating to the page2. But tapping back button in page 2 is showing all history of the stack pages. So how to remove the page from the modal stack. I also used navigation.Remove(page) but it throws an exception. Please guide.</p>
  
  <pre><code>foreach (var page in Navigation.ModalStack)
  {
      if (page is Page3)
      {
          await PopModalPage();
      }
  }
  
  foreach (var page in Navigation.ModalStack)
  {
      if (page is Page4)
      {
          await PopModalPage();
      }
  }
  </code></pre>
  
  <p>To navigate to page 2 from page 4 I'm using this code 
  Any optimized way than this??</p>