我为.Net core angular app定义了以下路由。
当我导航到project-form/:id
时,它会转到页面,但URL在浏览器中不会更改,它只会保留在当前页面URL上。
{ path: 'project-form', component: ProjectFormComponent },
{ path: 'project-form/:id', component: ProjectFormComponent },
{ path: 'home', component: HomeComponent },
{ path: 'dt-instance', component: DtInstanceComponent },
{ path: 'project-dashboard', component: DashboardComponent },
{ path: '**', redirectTo: 'home' }