title: How does ionic history work and when is a non-root stack created?
body: <p>I'm using <a href="http://ionicframework.com/">ionic</a> v1.0.0 and do not understand the way parallel history managed by <code>$ionicHistory</code> works.</p>
  
  <p>Especially on Android devices, when using the (formerly hardware-)back button, my Angular app sometimes behaves strange and I'd like to understand why. (example: navigating back opens a view closed by <code>$ionicGoBack()</code> long time ago)</p>
  
  <p>For me it seems like some of the ui-router navigations create new history stacks and others put the history items in the root history, even when going from state to sub-state should append to the history where state is recorded IMO.</p>
  
  <p><strong>Questions</strong></p>
  
  <ul>
  <li>Can anybody explain in which cases <code>ui-sref</code> or <code>$state.go(...)</code> append history items to a newly created stack?</li>
  <li>When are they appended to <code>root</code>?</li>
  <li>Are modals treated in a special way?</li>
  </ul>
  
  <p>Sorry for not being more specific, but the app is rather complicated and I don't know how to isolate the problems in a single plunkr. Maybe I missed a piece of good documentation...</p>