# Nested states: 3 level

**URL:** <https://forum.ionicframework.com/t/nested-states-3-level/1137>\
**Category:** ionic-v1\
**Created:** [February 16, 2014, 4:34am UTC](https://forum.ionicframework.com/t/nested-states-3-level/1137 "2014-02-16T04:34:09Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![timothykrell](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@timothykrell](https://forum.ionicframework.com/u/timothykrell)\
**Post date:** [October 6, 2014, 8:01pm UTC](https://forum.ionicframework.com/t/nested-states-3-level/1137/13 "2014-10-06T20:01:02Z")

</div>

I ended up solving the nested states problem in a similar way. I had trouble getting the back button and tab switching to function as I would expect, so I ended up writing some custom logic. Thought some people in this topic might find it useful.

> **[Custom back button to navigate up a state tree](http://forum.ionicframework.com/t/custom-back-button-to-navigate-up-a-state-tree/10720?u=timothykrell)**
>
> I've created a custom back button for ionic's navbar that goes up the state tree when there isn't any history to go back to. This is useful for me, since I'm using ionic as a web app (not hybrid) and the users can refresh the page, leaving them in a...

---

_[View the full topic](https://forum.ionicframework.com/t/nested-states-3-level/1137)._
