title: Ionic tabs auto navigation
body: <p>The 'auto' back function and 'remember history' function of is pretty nice.</p>
  
  <p>But if I have a link on a page that go directly into another tab's 2nd layer, I will never be able to see the 1st layer of the 2nd tab due to the 'remember history' function.</p>
  
  <p>Here is the codepenproject.</p>
  
  <pre><code>http://codepen.io/wildcolor/pen/MYYLVG
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;ion-nav-bar class="nav-title-slide-ios7 bar-positive"&gt;
    &lt;ion-nav-back-button class="button-icon ion-arrow-left-c"&gt;
    &lt;/ion-nav-back-button&gt;
  &lt;/ion-nav-bar&gt;
  
  &lt;ion-nav-view animation="slide-left-right"&gt;&lt;/ion-nav-view&gt;
  
  
  &lt;script id="tabs.html" type="text/ng-template"&gt;
    &lt;ion-tabs class="tabs-icon-top tabs-positive"&gt;
  
      &lt;ion-tab title="Home" icon="ion-home" href="#/tab/home"&gt;
        &lt;ion-nav-view name="home-tab"&gt;&lt;/ion-nav-view&gt;
      &lt;/ion-tab&gt;
  
      &lt;ion-tab title="About" icon="ion-ios7-information" href="#/tab/about"&gt;
        &lt;ion-nav-view name="about-tab"&gt;&lt;/ion-nav-view&gt;
      &lt;/ion-tab&gt;
  
      &lt;ion-tab title="Contact" icon="ion-ios7-world" ui-sref="tabs.contact"&gt;
        &lt;ion-nav-view name="contact-tab"&gt;&lt;/ion-nav-view&gt;
      &lt;/ion-tab&gt;
  
    &lt;/ion-tabs&gt;
  &lt;/script&gt;
  
  &lt;script id="home.html" type="text/ng-template"&gt;
    &lt;ion-view title="Home"&gt;
      &lt;ion-content class="padding"&gt;
        &lt;p&gt;Example of Ionic tabs. Navigate to each tab, and
        navigate to child views of each tab and notice how
        each tab has its own navigation history.&lt;/p&gt;
        &lt;p&gt;
          &lt;a class="button icon icon-right ion-chevron-right" ui-sref="tabs.navstack"&gt;about navstack&lt;/a&gt;
        &lt;/p&gt;
        &lt;p&gt;
          &lt;a class="button icon icon-right ion-chevron-right" href="#/tab/facts"&gt;Scientific Facts&lt;/a&gt;
        &lt;/p&gt;
        &lt;p&gt;
          &lt;a class="button icon icon-right ion-chevron-right" ng-click="getClicky()"&gt;get clicky&lt;/a&gt;
        &lt;/p&gt;
      &lt;/ion-content&gt;
    &lt;/ion-view&gt;
  &lt;/script&gt;
  
  &lt;script id="facts.html" type="text/ng-template"&gt;
    &lt;ion-view title="Facts" class="padding"&gt;
      &lt;ion-content&gt;
        &lt;p&gt;Banging your head against a wall uses 150 calories an hour.&lt;/p&gt;
        &lt;p&gt;Dogs have four toes on their hind feet, and five on their front feet.&lt;/p&gt;
        &lt;p&gt;The ant can lift 50 times its own weight, can pull 30 times its own weight and always falls over on its right side when intoxicated.&lt;/p&gt;
        &lt;p&gt;A cockroach will live nine days without it's head, before it starves to death.&lt;/p&gt;
        &lt;p&gt;Polar bears are left handed.&lt;/p&gt;
        &lt;p&gt;
          &lt;a class="button icon ion-home" href="#/tab/home"&gt; Home&lt;/a&gt;
          &lt;a class="button icon icon-right ion-chevron-right" href="#/tab/facts2"&gt;More Facts&lt;/a&gt;
        &lt;/p&gt;
      &lt;/ion-content&gt;
    &lt;/ion-view&gt;
  &lt;/script&gt;
  
  &lt;script id="facts2.html" type="text/ng-template"&gt;
    &lt;ion-view title="Also Factual"&gt;
      &lt;ion-content class="padding"&gt;
        &lt;p&gt;111,111,111 x 111,111,111 = 12,345,678,987,654,321&lt;/p&gt;
        &lt;p&gt;1 in every 4 Americans has appeared on T.V.&lt;/p&gt;
        &lt;p&gt;11% of the world is left-handed.&lt;/p&gt;
        &lt;p&gt;1 in 8 Americans has worked at a McDonalds restaurant.&lt;/p&gt;
        &lt;p&gt;$283,200 is the absolute highest amount of money you can win on Jeopardy.&lt;/p&gt;
        &lt;p&gt;101 Dalmatians, Peter Pan, Lady and the Tramp, and Mulan are the only Disney cartoons where both parents are present and don't die throughout the movie.&lt;/p&gt;
        &lt;p&gt;
          &lt;a class="button icon ion-home" href="#/tab/home"&gt; Home&lt;/a&gt;
          &lt;a class="button icon ion-chevron-left" href="#/tab/facts"&gt; Scientific Facts&lt;/a&gt;
        &lt;/p&gt;
      &lt;/ion-content&gt;
    &lt;/ion-view&gt;
  &lt;/script&gt;
  
  &lt;script id="about.html" type="text/ng-template"&gt;
    &lt;ion-view title="About"&gt;
      &lt;ion-content class="padding"&gt;
        &lt;h3&gt;Create hybrid mobile apps with the web technologies you love.&lt;/h3&gt;
        &lt;p&gt;Free and open source, Ionic offers a library of mobile-optimized HTML, CSS and JS components for building highly interactive apps.&lt;/p&gt;
        &lt;p&gt;Built with Sass and optimized for AngularJS.&lt;/p&gt;
        &lt;p&gt;
          &lt;a class="button icon icon-right ion-chevron-right" href="#/tab/navstack"&gt;Tabs Nav Stack&lt;/a&gt;
        &lt;/p&gt;
      &lt;/ion-content&gt;
    &lt;/ion-view&gt;
  &lt;/script&gt;
  
  &lt;script id="nav-stack.html" type="text/ng-template"&gt;
    &lt;ion-view title="Tab Nav Stack"&gt;
      &lt;ion-content class="padding"&gt;
        &lt;p&gt;&lt;img src="http://ionicframework.com/img/diagrams/tabs-nav-stack.png" style="width:100%"&gt;&lt;/p&gt;
      &lt;/ion-content&gt;
    &lt;/ion-view&gt;
  &lt;/script&gt;
  
  &lt;script id="contact.html" type="text/ng-template"&gt;
    &lt;ion-view title="Contact"&gt;
      &lt;ion-content&gt;
        &lt;p&gt;@IonicFramework&lt;/p&gt;
        &lt;p&gt;@DriftyCo&lt;/p&gt;
      &lt;/ion-content&gt;
    &lt;/ion-view&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p></p>
  
  <p>If you press the button 'about navstack', you see the 2nd layer of 'about' tab. Because you go directly into the 2nd layer of 'about' tab you will never be able to see the 1st layer of 'about' tab.</p>
  
  <p>To see what the 1st layer of the 'about' tab is, press 'F5' to refresh browse and press the 'about' tab in the middle part of the bottom bar.</p>
  
  <p>how do we solve this?</p>