1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular 8: page redirect to home when refresh base url

Discussão em 'Angular' iniciado por Harifrais, Outubro 9, 2024.

  1. Harifrais

    Harifrais Guest

    In my angular project i have a menu dashboard , when login it redirects to dashboard but when i remove that dashboard from URL (i.e)before localhost:4200/dashboard, after removed localhost:4200, when refresh how to i navigate to dashboard again?

    { path: '', redirectTo: '/dashboard', pathMatch: 'full' },
    { path: 'login', component: LoginComponent },
    { path: 'dashboard', component: DashboardComponent},
    { path: '**', redirectTo: 'login' ,pathMatch: 'full' }

    Continue reading...

Compartilhe esta Página