# Error Routing

**URL:** <https://forum.ionicframework.com/t/error-routing/169312>\
**Category:** Ionic Framework\
**Created:** [July 22, 2019, 9:26am UTC](https://forum.ionicframework.com/t/error-routing/169312 "2019-07-22T09:26:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![EniolaTade](https://avatars.discourse-cdn.com/v4/letter/e/b5e925/32.png) [@EniolaTade](https://forum.ionicframework.com/u/EniolaTade)\
**Post date:** [July 22, 2019, 9:26am UTC](https://forum.ionicframework.com/t/error-routing/169312/1 "2019-07-22T09:26:40Z")

</div>

Hello guys, i still get this error when trying to route from one page to another.

Error: Cannot match any routes. URL Segment:  
tabs/list/profile/DNKagDWuNX8vkXj4pqiB’

How do i solve this please?

---

<div class="post-metadata">

**Author:** ![saad-ansari](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/saad-ansari/32/130182_2.png) [@saad-ansari](https://forum.ionicframework.com/u/saad-ansari)\
**Post date:** [July 23, 2019, 8:26am UTC](https://forum.ionicframework.com/t/error-routing/169312/2 "2019-07-23T08:26:24Z")

</div>

Please show your routing file code

---

<div class="post-metadata">

**Author:** ![EniolaTade](https://avatars.discourse-cdn.com/v4/letter/e/b5e925/32.png) [@EniolaTade](https://forum.ionicframework.com/u/EniolaTade)\
**Post date:** [August 1, 2019, 7:37am UTC](https://forum.ionicframework.com/t/error-routing/169312/3 "2019-08-01T07:37:03Z")

</div>

import { NgModule } from ‘@angular/core’;  
import { RouterModule, Routes } from ‘@angular/router’;  
import { TabsPage } from ‘./tabs.page’;

const routes: Routes = [  
{  
path: ‘tabs’,  
component: TabsPage,  
children: [  
{  
path: ‘home’,  
children: [  
{  
path: ‘’,  
loadChildren: ‘…/tab1/tab1.module#Tab1PageModule’  
}  
]  
},  
{  
path: ‘list’,  
children: [  
{  
path: ‘’,  
loadChildren: ‘…/tab2/tab2.module#Tab2PageModule’,  
}  
]  
},  
{  
path: ‘profile’,  
children: [  
{  
path: ‘’,  
loadChildren: ‘…/tab3/tab3.module#Tab3PageModule’  
}  
]  
},  
{  
path: ’ profile/:id’,  
children: [  
{  
path:’’,  
loadChildren: ‘…/tab3/tab3.module#Tab3PageModule’  
}  
]  
},  
{  
path: ‘’,  
redirectTo: ‘/tabs/home’,  
pathMatch: ‘full’  
}  
]  
},  
{  
path: ‘’,  
redirectTo: ‘/tabs/home’,  
pathMatch: ‘full’  
}  
];

@NgModule({  
imports: [  
RouterModule.forChild(routes)  
],  
exports: [RouterModule]  
})  
export class TabsPageRoutingModule {}

---

<div class="post-metadata">

**Author:** ![bundayy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bundayy/32/127402_2.png) [@bundayy](https://forum.ionicframework.com/u/bundayy)\
**Post date:** [August 1, 2019, 8:29am UTC](https://forum.ionicframework.com/t/error-routing/169312/4 "2019-08-01T08:29:50Z")

</div>

From your children structure, `profile` is not a child of `list` so change your route to `tabs/profile/DNKagDWuNX8vkXj4pqiB’`

---

<div class="post-metadata">

**Author:** ![dragontattoo](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@dragontattoo](https://forum.ionicframework.com/u/dragontattoo)\
**Post date:** [August 1, 2019, 9:01am UTC](https://forum.ionicframework.com/t/error-routing/169312/5 "2019-08-01T09:01:53Z")

</div>

Will try this piece of code

---

<div class="post-metadata">

**Author:** ![EniolaTade](https://avatars.discourse-cdn.com/v4/letter/e/b5e925/32.png) [@EniolaTade](https://forum.ionicframework.com/u/EniolaTade)\
**Post date:** [August 1, 2019, 9:07am UTC](https://forum.ionicframework.com/t/error-routing/169312/6 "2019-08-01T09:07:42Z")

</div>

Thank you so much! i’m very grateful. I will try it now
