@@ -11,12 +11,10 @@ import {
1111 FORBIDDEN_PATH ,
1212 FORGOT_PASSWORD_PATH ,
1313 INFO_MODULE_PATH ,
14- INTERNAL_SERVER_ERROR ,
15- LEGACY_BITSTREAM_MODULE_PATH ,
1614 PROFILE_MODULE_PATH ,
1715 REGISTER_PATH ,
18- REQUEST_COPY_MODULE_PATH ,
1916 WORKFLOW_ITEM_MODULE_PATH ,
17+ LEGACY_BITSTREAM_MODULE_PATH , REQUEST_COPY_MODULE_PATH ,
2018} from './app-routing-paths' ;
2119import { COLLECTION_MODULE_PATH } from './collection-page/collection-page-routing-paths' ;
2220import { COMMUNITY_MODULE_PATH } from './community-page/community-page-routing-paths' ;
@@ -28,25 +26,14 @@ import { SiteRegisterGuard } from './core/data/feature-authorization/feature-aut
2826import { ThemedPageNotFoundComponent } from './pagenotfound/themed-pagenotfound.component' ;
2927import { ThemedForbiddenComponent } from './forbidden/themed-forbidden.component' ;
3028import { GroupAdministratorGuard } from './core/data/feature-authorization/feature-authorization-guard/group-administrator.guard' ;
31- import { ThemedPageInternalServerErrorComponent } from './page-internal-server-error/themed-page-internal-server-error.component' ;
32- import { ServerCheckGuard } from './core/server-check/server-check.guard' ;
3329
3430@NgModule ( {
3531 imports : [
36- RouterModule . forRoot ( [
37- { path : INTERNAL_SERVER_ERROR , component : ThemedPageInternalServerErrorComponent } ,
38- {
39- path : '' ,
40- canActivate : [ AuthBlockingGuard ] ,
41- canActivateChild : [ ServerCheckGuard ] ,
32+ RouterModule . forRoot ( [ {
33+ path : '' , canActivate : [ AuthBlockingGuard ] ,
4234 children : [
4335 { path : '' , redirectTo : '/home' , pathMatch : 'full' } ,
44- {
45- path : 'reload/:rnd' ,
46- component : ThemedPageNotFoundComponent ,
47- pathMatch : 'full' ,
48- canActivate : [ ReloadGuard ]
49- } ,
36+ { path : 'reload/:rnd' , component : ThemedPageNotFoundComponent , pathMatch : 'full' , canActivate : [ ReloadGuard ] } ,
5037 {
5138 path : 'home' ,
5239 loadChildren : ( ) => import ( './home-page/home-page.module' )
@@ -102,8 +89,7 @@ import { ServerCheckGuard } from './core/server-check/server-check.guard';
10289 . then ( ( m ) => m . ItemPageModule ) ,
10390 canActivate : [ EndUserAgreementCurrentUserGuard ]
10491 } ,
105- {
106- path : 'entities/:entity-type' ,
92+ { path : 'entities/:entity-type' ,
10793 loadChildren : ( ) => import ( './item-page/item-page.module' )
10894 . then ( ( m ) => m . ItemPageModule ) ,
10995 canActivate : [ EndUserAgreementCurrentUserGuard ]
@@ -147,12 +133,12 @@ import { ServerCheckGuard } from './core/server-check/server-check.guard';
147133 {
148134 path : 'login' ,
149135 loadChildren : ( ) => import ( './login-page/login-page.module' )
150- . then ( ( m ) => m . LoginPageModule )
136+ . then ( ( m ) => m . LoginPageModule ) ,
151137 } ,
152138 {
153139 path : 'logout' ,
154140 loadChildren : ( ) => import ( './logout-page/logout-page.module' )
155- . then ( ( m ) => m . LogoutPageModule )
141+ . then ( ( m ) => m . LogoutPageModule ) ,
156142 } ,
157143 {
158144 path : 'submit' ,
@@ -192,7 +178,7 @@ import { ServerCheckGuard } from './core/server-check/server-check.guard';
192178 } ,
193179 {
194180 path : INFO_MODULE_PATH ,
195- loadChildren : ( ) => import ( './info/info.module' ) . then ( ( m ) => m . InfoModule )
181+ loadChildren : ( ) => import ( './info/info.module' ) . then ( ( m ) => m . InfoModule ) ,
196182 } ,
197183 {
198184 path : REQUEST_COPY_MODULE_PATH ,
@@ -206,18 +192,17 @@ import { ServerCheckGuard } from './core/server-check/server-check.guard';
206192 {
207193 path : 'statistics' ,
208194 loadChildren : ( ) => import ( './statistics-page/statistics-page-routing.module' )
209- . then ( ( m ) => m . StatisticsPageRoutingModule )
195+ . then ( ( m ) => m . StatisticsPageRoutingModule ) ,
210196 } ,
211197 {
212198 path : ACCESS_CONTROL_MODULE_PATH ,
213199 loadChildren : ( ) => import ( './access-control/access-control.module' ) . then ( ( m ) => m . AccessControlModule ) ,
214200 canActivate : [ GroupAdministratorGuard ] ,
215201 } ,
216202 { path : '**' , pathMatch : 'full' , component : ThemedPageNotFoundComponent } ,
217- ]
218- }
219- ] , {
220- onSameUrlNavigation : 'reload' ,
203+ ] }
204+ ] , {
205+ onSameUrlNavigation : 'reload' ,
221206} )
222207 ] ,
223208 exports : [ RouterModule ] ,
0 commit comments