# Reload child routing

**URL:** <https://discourse.aurelia.io/t/reload-child-routing/2992>\
**Category:** Uncategorized\
**Created:** [October 14, 2019, 9:40am UTC](https://discourse.aurelia.io/t/reload-child-routing/2992 "2019-10-14T09:40:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GallAnonim](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@GallAnonim](https://discourse.aurelia.io/u/GallAnonim)\
**Post date:** [October 14, 2019, 9:40am UTC](https://discourse.aurelia.io/t/reload-child-routing/2992/1 "2019-10-14T09:40:12Z")

</div>

Hey, I have a problem with child routing. I would like, for example, when I’m on step 2 or 3 when refreshing the page, go to step 1.

Please, help 🙂

configureRouter(config: RouterConfiguration, router: Router) {  
config.title = “Web”;  
config.map([  
{  
route: [’’, ‘test1’],  
name: “test1”,  
moduleId: PLATFORM.moduleName("…/modules/steps/test1"),  
nav: true,  
title: “Test 1”,  
},  
{  
route: ‘test2’,  
name: “test2”,  
moduleId: PLATFORM.moduleName("…/modules/steps/test2"),  
nav: true,  
title: “Test 2”,  
href: “#/modules/test2”,  
},  
{  
route: 'test3,  
name: “test3”,  
moduleId: PLATFORM.moduleName("…/modules/steps/test3"),  
nav: true,  
title: “Test 3”,  
href: “#/modules/test3”,  
},  
]);  
this.router = router;  
}

---

<div class="post-metadata">

**Author:** ![michaelw85](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/michaelw85/32/1317_2.png) [@michaelw85](https://discourse.aurelia.io/u/michaelw85)\
**Post date:** [October 14, 2019, 10:00am UTC](https://discourse.aurelia.io/t/reload-child-routing/2992/2 "2019-10-14T10:00:36Z")

</div>

I don’t think this is a router problem, or even the problem you describe exists because your steps have routes.

I would either remove the routes and implement code that loads a specific view depending on the step you are currently at (keeping this in memory not persistent storage) or redirect to step 1 if certain data does not exist or check `document.referrer` to see if the previous page was actually a previous step (or get the info from the router). Multiple ways how you could tackle this.

Hope this helps solve your problem.
