@@ -17,7 +17,7 @@ import {
1717 HEALTH_PAGE_PATH ,
1818 INFO_MODULE_PATH ,
1919 INTERNAL_SERVER_ERROR ,
20- LEGACY_BITSTREAM_MODULE_PATH ,
20+ LEGACY_BITSTREAM_MODULE_PATH , PAGE_NOT_FOUND_PATH ,
2121 PROFILE_MODULE_PATH ,
2222 REGISTER_PATH ,
2323 REQUEST_COPY_MODULE_PATH ,
@@ -54,8 +54,8 @@ import {
5454@NgModule ( {
5555 imports : [
5656 RouterModule . forRoot ( [
57- { path : INTERNAL_SERVER_ERROR , component : ThemedPageInternalServerErrorComponent } ,
58- { path : ERROR_PAGE , component : ThemedPageErrorComponent } ,
57+ { path : INTERNAL_SERVER_ERROR , component : ThemedPageInternalServerErrorComponent , data : { title : INTERNAL_SERVER_ERROR } } ,
58+ { path : ERROR_PAGE , component : ThemedPageErrorComponent , data : { title : ERROR_PAGE } } ,
5959 {
6060 path : '' ,
6161 canActivate : [ AuthBlockingGuard ] ,
@@ -67,7 +67,10 @@ import {
6767 path : 'reload/:rnd' ,
6868 component : ThemedPageNotFoundComponent ,
6969 pathMatch : 'full' ,
70- canActivate : [ ReloadGuard ]
70+ canActivate : [ ReloadGuard ] ,
71+ data : {
72+ title : PAGE_NOT_FOUND_PATH
73+ }
7174 } ,
7275 {
7376 path : 'home' ,
@@ -268,7 +271,10 @@ import {
268271 } ,
269272 {
270273 path : FORBIDDEN_PATH ,
271- component : ThemedForbiddenComponent
274+ component : ThemedForbiddenComponent ,
275+ data : {
276+ title : FORBIDDEN_PATH
277+ }
272278 } ,
273279 {
274280 path : STATISTICS_PAGE_PATH ,
@@ -307,7 +313,7 @@ import {
307313 loadChildren : ( ) => import ( './invitation/invitation.module' )
308314 . then ( ( m ) => m . InvitationModule )
309315 } ,
310- { path : '**' , pathMatch : 'full' , component : ThemedPageNotFoundComponent , canActivate : [ RedirectService ] } ,
316+ { path : '**' , pathMatch : 'full' , component : ThemedPageNotFoundComponent , canActivate : [ RedirectService ] , data : { title : PAGE_NOT_FOUND_PATH } } ,
311317 ]
312318 }
313319 ] , {
0 commit comments