129694: PoC #4099 solution with resolvers

This commit is contained in:
lotte
2025-03-26 17:59:31 +01:00
parent b076738b53
commit 8140ed29e7
27 changed files with 98 additions and 106 deletions

View File

@@ -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',