Menu navigate redirect

1 Answer 17 Views
Menu
tajiva
Top achievements
Rank 1
tajiva asked on 02 May 2021, 09:49 AM | edited on 03 May 2021, 04:47 AM

RESOLVED

 

Hi,

I have an loggin page and after login i tried without succes to navigate to page2 like this

this.router.navigate(['agenda'])
this.router.navigateByUrl('/agenda');
 this.router.navigateByUrl('agenda');

i have removed from routes AuthGuard] without success too

 

My  routes

  export const routesKendo = [
  {path: '**', redirectTo: '/login'},
  {path: 'login', component: LoginComponent},
  { path: 'agenda', component: AgendaComponent, canActivate: [AuthGuard], text: 'Agenda' },
  { path: 'contact', component: ContactComponent, canActivate: [AuthGuard], text: 'Contact' },
  { path: 'facture', component: FactureComponent, canActivate: [AuthGuard], text: 'Facture' }

];

 

my module

@NgModule({
  declarations: [],
  imports: [
    CommonModule,
    RouterModule.forRoot(routesKendo,
      {enableTracing: true , // <-- debugging purposes only
        relativeLinkResolution: 'legacy'} //dans l"exemple de Kendo
    )
  ],
  exports: [RouterModule]
})

 

Where is my mistake ?

Regards

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 05 May 2021, 08:22 AM

Hello Tajiva,

I've noticed that the thread is marked as "resolved". I just wanted to check if some assistance from our end will be needed or the issue is fixed.

Thank you in advance.

Regards,
Dimiter Madjarov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Menu
Asked by
tajiva
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or