Fix for routing

This commit is contained in:
Piotr Pekala 2019-11-05 02:24:19 -08:00
parent 00cf8a29c7
commit 1798aaf7dd
2 changed files with 6 additions and 6 deletions

View File

@ -129,15 +129,15 @@ const routes: Routes = [
{ path: 'server/:server_id/preferences/iou/templates', component: IouTemplatesComponent },
{ path: 'server/:server_id/preferences/iou/templates/:template_id', component: IouTemplateDetailsComponent },
{ path: 'server/:server_id/preferences/iou/templates/:template_id/copy', component: CopyIouTemplateComponent },
{ path: 'server/:server_id/preferences/iou/addtemplate', component: AddIouTemplateComponent },
{
path: '**',
component: PageNotFoundComponent
}
{ path: 'server/:server_id/preferences/iou/addtemplate', component: AddIouTemplateComponent }
]
},
{
path: 'server/:server_id/project/:project_id', component: ProjectMapComponent,
},
{
path: '**',
component: PageNotFoundComponent
}
];

View File

@ -1,6 +1,6 @@
<div class="content">
<div class="default-header">
<h1>404 Page not found</h1>
<br/><h1>404 Page not found</h1>
<button mat-button routerLink="/servers">Navigate to homepage</button>
</div>
</div>