# Nested routes/pages inside IonTabs? (v4 React)

**URL:** <https://forum.ionicframework.com/t/nested-routes-pages-inside-iontabs-v4-react/175204>\
**Category:** ionic-v3\
**Created:** [October 10, 2019, 3:19am UTC](https://forum.ionicframework.com/t/nested-routes-pages-inside-iontabs-v4-react/175204 "2019-10-10T03:19:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benallfree](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/benallfree/32/66392_2.png) [@benallfree](https://forum.ionicframework.com/u/benallfree)\
**Post date:** [October 10, 2019, 3:19am UTC](https://forum.ionicframework.com/t/nested-routes-pages-inside-iontabs-v4-react/175204/1 "2019-10-10T03:19:42Z")

</div>

I’m having a heck of a time getting nested routes to work inside an IonTabs component. Is this basic structure allowed?

All goes well for a while, but hitting the tab button again to return to the `/shop` root seems to make the other pages permanently disappear. I suspect there is a bug in `IonRouterOutlet` because if I remove it (and `<IonTabs>`) navigation works fine.

```auto
<IonApp>
        <IonReactRouter>
          <IonTabs>
            <IonRouterOutlet>
              <Route path="/:tab(shop)" component={Shop} />
              <Route path="/:tab(shop)/:item" component={Item} />
              <Route path="/:tab(shop)/:item/detail" component={Detail} />
            </IonRouterOutlet>
            <IonTabBar slot="bottom">
              <IonTabButton tab="shop" href="/shop">
                <IonIcon icon={pricetag} />
                <IonLabel>Shop</IonLabel>
              </IonTabButton>
            </IonTabBar>
          </IonTabs>
        </IonReactRouter>
      </IonApp>

```

---

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [October 13, 2019, 6:20pm UTC](https://forum.ionicframework.com/t/nested-routes-pages-inside-iontabs-v4-react/175204/2 "2019-10-13T18:20:05Z")

</div>

have a working project here - [https://github.com/aaronksaunders/mySimpleTabsApp](https://github.com/aaronksaunders/mySimpleTabsApp)

---

<div class="post-metadata">

**Author:** ![benallfree](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/benallfree/32/66392_2.png) [@benallfree](https://forum.ionicframework.com/u/benallfree)\
**Post date:** [October 25, 2019, 3:48am UTC](https://forum.ionicframework.com/t/nested-routes-pages-inside-iontabs-v4-react/175204/3 "2019-10-25T03:48:17Z")

</div>

FYI it was this bug: [https://github.com/ionic-team/ionic/issues/19622](https://github.com/ionic-team/ionic/issues/19622)
