# URL in PWA to second page

**URL:** <https://forum.ionicframework.com/t/url-in-pwa-to-second-page/222890>\
**Category:** Ionic Angular\
**Created:** [May 2, 2022, 2:28pm UTC](https://forum.ionicframework.com/t/url-in-pwa-to-second-page/222890 "2022-05-02T14:28:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![max\_maeuschen](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@max\_maeuschen](https://forum.ionicframework.com/u/max_maeuschen)\
**Post date:** [May 2, 2022, 2:28pm UTC](https://forum.ionicframework.com/t/url-in-pwa-to-second-page/222890/1 "2022-05-02T14:28:10Z")

</div>

In my PWA there’s a login page and now I want to navigate by URL to a second page. I’m using the following code in app-routing.module.ts:

```auto
const routes: Routes = [
  {
    path: 'login',
    loadChildren: () => import('./pages/login/login.module').then( m => m.LoginPageModule)
  },
  {
    path: '',
    redirectTo: 'login',
    pathMatch: 'full'
  },
  {
    path: 'menu',
    loadChildren: () => import('./pages/menu/menu.module').then( m => m.MenuPageModule),
    canActivate: [AuthService]
  },
  {
    path: 'registration',
    loadChildren: () => import('./pages/registration/registration.module').then( m => m.NeuanmeldungPageModule)
  },
];

```

The problem is now, that if I call the URL (e.g. [https://pwa.myurl.ex](https://pwa.myurl.ex)) of my PWA first and then the registration URL (e.g. [https://pwa.myurl.ex/registration](https://pwa.myurl.ex/registration)) everything works. But if I clear the cache of my device or browser and call [https://pwa.myurl.ex/registration](https://pwa.myurl.ex/registration) first I get a 404 error.

What’s wrong? Can you help me? Thanks in advance!
