mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
129694: PoC #4099 solution with resolvers
This commit is contained in:
@@ -41,6 +41,8 @@ import { ThemedPageNotFoundComponent } from './pagenotfound/themed-pagenotfound.
|
||||
import { PROCESS_MODULE_PATH } from './process-page/process-page-routing.paths';
|
||||
import { provideSubmissionState } from './submission/provide-submission-state';
|
||||
import { SUGGESTION_MODULE_PATH } from './suggestions-page/suggestions-page-routing-paths';
|
||||
import { homePageResolver } from './home-page/home-page.resolver';
|
||||
import { viewTrackerResolver } from './statistics/angulartics/dspace/view-tracker.resolver';
|
||||
|
||||
export const APP_ROUTES: Route[] = [
|
||||
{ path: INTERNAL_SERVER_ERROR, component: ThemedPageInternalServerErrorComponent },
|
||||
@@ -61,9 +63,17 @@ export const APP_ROUTES: Route[] = [
|
||||
path: 'home',
|
||||
loadChildren: () => import('./home-page/home-page-routes')
|
||||
.then((m) => m.ROUTES),
|
||||
data: { showBreadcrumbs: false, enableRSS: true },
|
||||
data: {
|
||||
showBreadcrumbs: false,
|
||||
enableRSS: true,
|
||||
dsoPath: 'site'
|
||||
},
|
||||
providers: [provideSuggestionNotificationsState()],
|
||||
canActivate: [endUserAgreementCurrentUserGuard],
|
||||
resolve: {
|
||||
site: homePageResolver,
|
||||
tracking: viewTrackerResolver,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'community-list',
|
||||
|
Reference in New Issue
Block a user