title: Ionic 4 (Angular 7) 'default history' equivalent for deep linking?
body: <p>I am learning Ionic 4 further and trying to find equivalent for "default history" with Angular 7's routing approach.</p>
  
  <p>In Ionic 3 there was "default history" property as part of IonicPage: <a href="https://ionicframework.com/docs/v3/api/navigation/IonicPage/" rel="nofollow noreferrer">https://ionicframework.com/docs/v3/api/navigation/IonicPage/</a></p>
  
  <p>This would allow a use case such as:</p>
  
  <ul>
  <li>user navigates to www.mywebsite.com/<strong>list/detail/99</strong></li>
  <li>now user clicks "back" button and gets to www.mywebsite.com/<strong>list</strong> even tough they never visited <strong>list</strong> prior and went directly to the detail page.</li>
  </ul>
  
  <p>Code wise in Ionic 3 we would use "defaultHistory": </p>
  
  <pre><code>...
  @IonicPage({
    name: 'detail-page',
    segment: 'detail/:id',
    defaultHistory: ['list']
  })
  ...
  </code></pre>
  
  <p>Now in Ionic 4 / Angular 7 (which uses Angular's router now) I struggle to find equivalent method.</p>
  
  <p>I understand what I could in theory achieve something similar using web apis (such as <a href="https://developer.mozilla.org/en-US/docs/Web/API/History_API" rel="nofollow noreferrer">history.pushState</a>) but is there Angular 7 way?</p>
  
  <p><strong>UPDATE1:</strong></p>
  
  <p>I checked that ion-back-button does have defaultHref which can accept a route string. But issue is that this button (back-button) won't really show itself if the browsing history is empty...</p>