# Error: Cannot match any routes. URL Segment: 'set/4DEjDIwExmgjJGPdvtto'

**URL:** <https://forum.ionicframework.com/t/error-cannot-match-any-routes-url-segment-set-4dejdiwexmgjjgpdvtto/166457>\
**Category:** Ionic Framework\
**Created:** [June 17, 2019, 1:36pm UTC](https://forum.ionicframework.com/t/error-cannot-match-any-routes-url-segment-set-4dejdiwexmgjjgpdvtto/166457 "2019-06-17T13:36:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lily28](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lily28](https://forum.ionicframework.com/u/lily28)\
**Post date:** [June 17, 2019, 1:36pm UTC](https://forum.ionicframework.com/t/error-cannot-match-any-routes-url-segment-set-4dejdiwexmgjjgpdvtto/166457/1 "2019-06-17T13:36:31Z")

</div>

I’m facing a routing issue. I want to navigate to set page however there are error saying it cant be match, I dont really know what is wrong with the code. The error is as below

Error: Cannot match any routes. URL Segment: ‘set/4DEjDIwExmgjJGPdvtto’

Here is my app-routing.module.ts

```auto
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  { path: 'login', loadChildren: './login/login.module#LoginPageModule' },
  { path: 'register', loadChildren: './register/register.module#RegisterPageModule' },
  { path: '', redirectTo: 'login', pathMatch: 'full' },
  { path: '', loadChildren: './pages/tabs/tabs.module#TabsPageModule' },
  { path: 'set', loadChildren: './pages/set/set.module#SetPageModule' },
  { path: 'set/id', loadChildren: './pages/set/set.module#SetPageModule' }
];

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

```

This is my tab2.html

```auto
<ion-header>
    <ion-toolbar color="primary">
      <ion-title>Alert lists</ion-title>
    </ion-toolbar>
  </ion-header>

  <ion-content>
    <ion-fab vertical="bottom" horizontal="end" slot="fixed">
      <ion-fab-button routerLink="/set">
        <ion-icon name="add"></ion-icon>
      </ion-fab-button>
    </ion-fab>

    <ion-list>
      <ion-item button [routerLink]="['/set', set.id]" *ngFor="let set of (sets | async)">
        {{ set.notes }}
      </ion-item>
    </ion-list>
  </ion-content>

```

Can anyone help me with this, thank you

---

<div class="post-metadata">

**Author:** ![lily28](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lily28](https://forum.ionicframework.com/u/lily28)\
**Post date:** [June 17, 2019, 1:44pm UTC](https://forum.ionicframework.com/t/error-cannot-match-any-routes-url-segment-set-4dejdiwexmgjjgpdvtto/166457/2 "2019-06-17T13:44:18Z")

</div>

Error fixed, there is typo in code  
`{ path: 'set/:id', loadChildren: './pages/set/set.module#SetPageModule' }`
