# Navigation Flow from Welcome/Sign-In to Home & Sub Pages

**URL:** <https://forums.fusetools.com/t/navigation-flow-from-welcome-sign-in-to-home-sub-pages/1908>\
**Category:** How-to Discussions\
**Created:** [January 10, 2017, 3:39am UTC](https://forums.fusetools.com/t/navigation-flow-from-welcome-sign-in-to-home-sub-pages/1908 "2017-01-10T03:39:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Karpenko](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/ivan_karpenko/32/92_2.png) [@Ivan\_Karpenko](https://forums.fusetools.com/u/Ivan_Karpenko)\
**Post date:** [January 10, 2017, 3:39am UTC](https://forums.fusetools.com/t/navigation-flow-from-welcome-sign-in-to-home-sub-pages/1908/1 "2017-01-10T03:39:46Z")

</div>

Hey guys, I stumbled upon navigation hell. The app has a Welcome/Sign-In flow that ends up at Home. Home contains 3 main pages. Profile, Search, and Messages. Profile contains Settings, Search contains Tinder-like Cards that you click to access Instant Message, Messages contains a list of conversations that you click to access Instant Message.

```auto
<Router ux:Name="router" />
<PageControl ux:Name="pages" Active="SuperProfile" TransitionDuration="0.2">
    <Page ux:Name="SuperProfile">
        <Navigator DefaultPath="Profile" DefaultTemplate="Profile">
            <ux:Include File="../Profile/ProfilePage.ux" />
            <ux:Include File="../Settings/ProfileSettingsPage.ux" />
        </Navigator>
    </Page>
    <Page ux:Name="SuperDiscover">
        <Navigator DefaultPath="Discover" DefaultTemplate="Discover">
            <ux:Include File="../Discover/DiscoverPage.ux" />
            <ux:Include File="../InstantMessages/InstantMessagesPage.ux" />
        </Navigator>
    </Page>
    <Page ux:Name="SuperMessages">
        <Navigator DefaultPath="Messages" DefaultTemplate="Messages">
            <ux:Include File="../InstantMessages/InstantMessagesPage.ux" />
            <ux:Include File="../Messages/MessagesPage.ux" />
        </Navigator>
    </Page>
</PageControl>

```

```auto
function clickedInstantMessages(args){
    router.push("SuperDiscover", {}, "InstantMessages");
}

function clickedBack(args){
    router.goBack();
}

```

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [January 10, 2017, 7:43am UTC](https://forums.fusetools.com/t/navigation-flow-from-welcome-sign-in-to-home-sub-pages/1908/2 "2017-01-10T07:43:36Z")

</div>

Hi! Can you give us some more info on what the problem is? 🙂

Also: I’d recommend making your pages using `ux:Class` rather than including them.

---

<div class="post-metadata">

**Author:** ![Ivan\_Karpenko](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/ivan_karpenko/32/92_2.png) [@Ivan\_Karpenko](https://forums.fusetools.com/u/Ivan_Karpenko)\
**Post date:** [January 10, 2017, 8:09pm UTC](https://forums.fusetools.com/t/navigation-flow-from-welcome-sign-in-to-home-sub-pages/1908/3 "2017-01-10T20:09:45Z")

</div>

The error I’m getting is on router.goBack(); “Unable to navigate to route: SuperDiscover/Discover/”

---

<div class="post-metadata">

**Author:** ![edA-qa\_mort-ora-y](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/eda-qa_mort-ora-y/32/124_2.png) [@edA-qa\_mort-ora-y](https://forums.fusetools.com/u/edA-qa_mort-ora-y)\
**Post date:** [January 11, 2017, 9:21am UTC](https://forums.fusetools.com/t/navigation-flow-from-welcome-sign-in-to-home-sub-pages/1908/4 "2017-01-11T09:21:11Z")

</div>

There is no obvious reason why this would fail, especially on a `goBack` operation. This would imply it can’t find a page that it was previously at. Do you add/remove pages, or change the name of them at all?

Can you by chance isolate a reproduction into a small example?

BTW, `DefaultPath` is sufficient, the `DefaultTemplate` is just provided for backwards compatibility.

---

<div class="post-metadata">

**Author:** ![Ivan\_Karpenko](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/ivan_karpenko/32/92_2.png) [@Ivan\_Karpenko](https://forums.fusetools.com/u/Ivan_Karpenko)\
**Post date:** [January 16, 2017, 11:17pm UTC](https://forums.fusetools.com/t/navigation-flow-from-welcome-sign-in-to-home-sub-pages/1908/5 "2017-01-16T23:17:17Z")

</div>

Found the source of the error while creating the example 🙂 I hadn’t named the Pages within the PageControl element on the Discover page. Here’s the example project. If you remove ux:Name on each Page of PageControl, you’ll see an error when router.goBack() is called:

- [Attached ZIP file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/jbdTzbsFP9QG-image-1484608478913.zip)
