Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Route unavailable page to default

$
0
0

Hi I how do I route all unmatched/unavailable url to home page? I’ve tried “*” but didn’t work.

{
    path: '',
    redirectTo: 'home',
    pathMatch: 'full'
  },
  {
    path: '*',
    redirectTo: 'home'
  },
  {
    path: 'home',
    loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
  },
{
    path: 'user',
    loadChildren: () => import('./tab/tab.module').then( m => m.TabPageModule),
    canActivate: [AuthGuardService]
  },

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>