title: Angular 2 Auth Guard Re-Direct To Home page
body: <p>Is there a way to re-direct to my home page if the route is blocked by AuthGuard. </p>
  
  <p>For example, if the user goes to www.my-example.com/user while not logged in, he will be blocked by auth guard, I want that user to be re-directed back to the home page. At the moment it just shows a blank page.</p>
  
  <pre><code>// app.routing.ts
  const APP_ROUTE: Routes = [
  { path: '', redirectTo: 'home', pathMatch: 'full', },
  { path: '', component: UserLayoutComponent, children: [
      { path: 'user', loadChildren: 'app/user/user.module#CalenderModule' },
      ]
  }];
  
  // user.routing.ts
  const USERR_ROUTE: Routes = [
      { path: '', component: UserComponent, canActivate: [AuthGuard] },
  ];
  
  export const userRouting = RouterModule.forChild(USERR_ROUTE);
  </code></pre>