2021-04-01 16:25:15 +02:00
|
|
|
import {NgModule} from '@angular/core';
|
2022-06-02 16:30:48 +02:00
|
|
|
import {RouterModule, Routes} from '@angular/router';
|
2021-04-01 16:25:15 +02:00
|
|
|
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
2020-04-03 18:02:40 +02:00
|
|
|
import {PageURLResolverComponent} from "./openaireLibrary/utils/pageURLResolver.component";
|
2024-03-06 10:17:01 +01:00
|
|
|
import {CommunityAccessGuard} from "./utils/communityAccess.guard";
|
2018-02-12 12:41:40 +01:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2021-04-16 11:14:07 +02:00
|
|
|
// ORCID Pages
|
2023-07-07 09:12:25 +02:00
|
|
|
{
|
|
|
|
path: 'orcid',
|
|
|
|
loadChildren: () => import('./orcid/orcid.module').then(m => m.LibOrcidModule),
|
|
|
|
data: {hasQuickContact: false}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'my-orcid-links',
|
|
|
|
loadChildren: () => import('./orcid/my-orcid-links/myOrcidLinks.module').then(m => m.LibMyOrcidLinksModule),
|
|
|
|
data: {hasQuickContact: false}
|
|
|
|
},
|
2021-04-16 11:14:07 +02:00
|
|
|
|
2021-04-01 16:25:15 +02:00
|
|
|
/** Other Pages */
|
2023-04-21 14:09:22 +02:00
|
|
|
{
|
|
|
|
path: '',
|
2023-08-30 11:36:29 +02:00
|
|
|
loadChildren: () => import('./communitywrapper/communityWrapper.module').then(m => m.CommunityWrapperModule),
|
|
|
|
data: {hasStickyHeaderOnMobile: true}
|
2023-04-21 14:09:22 +02:00
|
|
|
},
|
2021-04-01 16:25:15 +02:00
|
|
|
{path: 'about', redirectTo: 'about/learn-how', pathMatch: 'full'},
|
2023-08-30 11:36:29 +02:00
|
|
|
{path: 'about/learn-how', loadChildren: () => import('./learn-how/learn-how.module').then(m => m.LearnHowModule), data: {hasStickyHeaderOnMobile: true}},
|
|
|
|
{path: 'about/faq', loadChildren: () => import('./learn-how/faqs/faqs.module').then(m => m.FaqsModule), data: {hasStickyHeaderOnMobile: true}},
|
2022-06-03 11:46:01 +02:00
|
|
|
{path: 'get-started', loadChildren: () => import('./get-started/get-started.module').then(m => m.GetStartedModule)},
|
2023-07-07 09:12:25 +02:00
|
|
|
{
|
|
|
|
path: 'contact-us',
|
|
|
|
loadChildren: () => import('./contact/contact.module').then(m => m.ContactModule),
|
|
|
|
data: {hasQuickContact: false}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'invite',
|
|
|
|
loadChildren: () => import('./utils/subscribe/invite/invite.module').then(m => m.InviteModule),
|
|
|
|
data: {hasQuickContact: false}
|
|
|
|
},
|
2023-04-21 14:09:22 +02:00
|
|
|
{
|
|
|
|
path: 'content',
|
|
|
|
loadChildren: () => import('./content/contentPage.module').then(m => m.ContentPageModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2023-07-07 09:12:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'sdgs',
|
|
|
|
loadChildren: () => import('./sdg/sdg.module').then(m => m.LibSdgModule),
|
|
|
|
data: {hasQuickContact: false}
|
2023-04-21 14:09:22 +02:00
|
|
|
},
|
2024-04-04 08:28:59 +02:00
|
|
|
{path: 'fields-of-science', loadChildren: () => import('./openaireLibrary/fos/fos.module').then(m => m.FosModule), data: {extraOffset: 100, hasQuickContact: false}},
|
2021-04-01 16:25:15 +02:00
|
|
|
{
|
|
|
|
path: 'organizations',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./htmlPages/organizations/organizationsPage.module').then(m => m.OrganizationsPageModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'publications',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./htmlPages/publications/publications-page.module').then(m => m.PublicationsPageModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'projects',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./htmlPages/projects/projectsPage.module').then(m => m.ProjectsPageModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'national-bulletins',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./htmlPages/nationalBulletins/nationalBulletinsPage.module').then(m => m.NaionalBulletinPageModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
2023-06-27 15:52:37 +02:00
|
|
|
{
|
|
|
|
path: 'faqs',
|
|
|
|
loadChildren: () => import('./htmlPages/featured/featuredPage.module').then(m => m.FeaturedPageModule),
|
2023-07-07 09:12:25 +02:00
|
|
|
data: {hasQuickContact: false}
|
2023-06-27 15:52:37 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'roadmap',
|
|
|
|
loadChildren: () => import('./htmlPages/featured/featuredPage.module').then(m => m.FeaturedPageModule),
|
2023-07-07 09:12:25 +02:00
|
|
|
data: {hasQuickContact: false}
|
2023-06-27 15:52:37 +02:00
|
|
|
},
|
2022-12-07 11:48:47 +01:00
|
|
|
// {
|
|
|
|
// path: 'featured',
|
|
|
|
// children: [
|
|
|
|
// {
|
|
|
|
// path: '',
|
|
|
|
// loadChildren: () => import('./htmlPages/featured/featuredPage.module').then(m => m.FeaturedPageModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
// data: {hasQuickContact: false}, canActivateChild: [CommunityAccessGuard],
|
2022-12-07 11:48:47 +01:00
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: '**',
|
|
|
|
// loadChildren: () => import('./htmlPages/featured/featuredPage.module').then(m => m.FeaturedPageModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
// data: {hasQuickContact: false}, canActivateChild: [CommunityAccessGuard],
|
2022-12-07 11:48:47 +01:00
|
|
|
// },
|
|
|
|
// ]
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
path: 'curators',
|
2024-02-05 08:42:52 +01:00
|
|
|
loadChildren: () => import('./openaireLibrary/connect/components/curators/curators.module').then(m => m.CuratorsModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2022-12-07 11:48:47 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'subjects',
|
|
|
|
loadChildren: () => import('./subjects/subjects.module').then(m => m.SubjectsModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2022-12-07 11:48:47 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'myCommunities',
|
|
|
|
loadChildren: () => import('./my-communities/my-communities.module').then(m => m.MyCommunitiesModule)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'develop',
|
2023-07-07 09:12:25 +02:00
|
|
|
loadChildren: () => import('./develop/develop.module').then(m => m.DevelopModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2022-12-07 11:48:47 +01:00
|
|
|
},
|
2021-04-01 16:25:15 +02:00
|
|
|
/** Testing Page for help contents */
|
2021-07-14 16:51:20 +02:00
|
|
|
{path: 'helper-test', loadChildren: () => import('./helper-test/helper-test.module').then(m => m.HelperTestModule)},
|
2021-04-01 16:25:15 +02:00
|
|
|
/** Landing Pages */
|
|
|
|
{
|
|
|
|
path: 'search/result',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./landingPages/result/libResult.module').then(m => m.LibResultModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/publication',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./landingPages/publication/libPublication.module').then(m => m.LibPublicationModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/dataset',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./landingPages/dataset/libDataset.module').then(m => m.LibDatasetModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/software',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./landingPages/software/libSoftware.module').then(m => m.LibSoftwareModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
2023-07-07 09:12:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/other', loadChildren: () => import('./landingPages/orp/libOrp.module').then(m => m.LibOrpModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/project',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./landingPages/project/libProject.module').then(m => m.LibProjectModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/dataprovider',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('././landingPages/dataProvider/libDataProvider.module').then(m => m.LibDataProviderModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/organization',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./landingPages/organization/libOrganization.module').then(m => m.LibOrganizationModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
/** Search Pages */
|
|
|
|
{path: 'search/find', redirectTo: 'search/find/research-outcomes', pathMatch: 'full'},
|
2023-07-07 09:12:25 +02:00
|
|
|
|
2021-04-01 16:25:15 +02:00
|
|
|
{
|
|
|
|
path: 'search/find/communities',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./searchPages/communities/searchCommunities.module').then(m => m.SearchCommunitiesModule)
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find/research-outcomes',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./searchPages/simple/searchResearchResults.module').then(m => m.OpenaireSearchResearchResultsModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2023-07-07 09:12:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find/publications',
|
|
|
|
component: PageURLResolverComponent,
|
|
|
|
data: {hasQuickContact: false},
|
2024-03-06 10:17:01 +01:00
|
|
|
canActivate: [CommunityAccessGuard]
|
2023-07-07 09:12:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find/datasets',
|
|
|
|
component: PageURLResolverComponent,
|
|
|
|
data: {hasQuickContact: false},
|
2024-03-06 10:17:01 +01:00
|
|
|
canActivate: [CommunityAccessGuard]
|
2023-07-07 09:12:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find/software',
|
|
|
|
component: PageURLResolverComponent,
|
|
|
|
data: {hasQuickContact: false},
|
2024-03-06 10:17:01 +01:00
|
|
|
canActivate: [CommunityAccessGuard]
|
2023-07-07 09:12:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find/other',
|
|
|
|
component: PageURLResolverComponent,
|
|
|
|
data: {hasQuickContact: false},
|
2024-03-06 10:17:01 +01:00
|
|
|
canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find/projects',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./searchPages/simple/searchProjects.module').then(m => m.LibSearchProjectsModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/find/dataproviders',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./searchPages/simple/searchDataProviders.module').then(m => m.LibSearchDataProvidersModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
/** Advanced Search Pages */
|
|
|
|
{
|
|
|
|
path: 'search/advanced/research-outcomes',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./searchPages/advanced/searchResearchResults.module').then(m => m.OpenaireAdvancedSearchResearchResultsModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2023-07-07 09:12:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/advanced/publications',
|
|
|
|
component: PageURLResolverComponent,
|
|
|
|
data: {hasQuickContact: false},
|
2024-03-06 10:17:01 +01:00
|
|
|
canActivate: [CommunityAccessGuard]
|
2023-07-07 09:12:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/advanced/datasets',
|
|
|
|
component: PageURLResolverComponent,
|
|
|
|
data: {hasQuickContact: false},
|
2024-03-06 10:17:01 +01:00
|
|
|
canActivate: [CommunityAccessGuard]
|
2023-07-07 09:12:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/advanced/software',
|
|
|
|
component: PageURLResolverComponent,
|
|
|
|
data: {hasQuickContact: false},
|
2024-03-06 10:17:01 +01:00
|
|
|
canActivate: [CommunityAccessGuard]
|
2023-07-07 09:12:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/advanced/other',
|
|
|
|
component: PageURLResolverComponent,
|
|
|
|
data: {hasQuickContact: false},
|
2024-03-06 10:17:01 +01:00
|
|
|
canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/advanced/organizations',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./searchPages/advanced/advancedSearchOrganizations.module').then(m => m.LibAdvancedSearchOrganizationsModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/advanced/dataproviders',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./searchPages/advanced/advancedSearchDataProviders.module').then(m => m.LibAdvancedSearchDataProvidersModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search/advanced/projects',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./searchPages/advanced/advancedSearchProjects.module').then(m => m.LibAdvancedSearchProjectsModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
/** Deposit Pages */
|
2021-07-14 16:51:20 +02:00
|
|
|
{ path: 'participate/deposit-datasets',
|
2021-04-01 16:25:15 +02:00
|
|
|
redirectTo: 'participate/deposit/learn-how',
|
2021-07-14 16:51:20 +02:00
|
|
|
pathMatch: 'full' },
|
|
|
|
{ path: 'participate/deposit-datasets-result',
|
2021-04-01 16:25:15 +02:00
|
|
|
redirectTo: 'participate/deposit/learn-how',
|
2021-07-14 16:51:20 +02:00
|
|
|
pathMatch: 'full' },
|
|
|
|
{ path: 'participate/deposit-subject-result',
|
2021-04-01 16:25:15 +02:00
|
|
|
redirectTo: 'participate/deposit/learn-how',
|
2021-07-14 16:51:20 +02:00
|
|
|
pathMatch: 'full' },
|
|
|
|
{ path: 'participate/deposit-publications',
|
2021-04-01 16:25:15 +02:00
|
|
|
redirectTo: 'participate/deposit/learn-how',
|
2021-07-14 16:51:20 +02:00
|
|
|
pathMatch: 'full' },
|
|
|
|
{ path: 'participate/deposit-publications-result',
|
2021-04-01 16:25:15 +02:00
|
|
|
redirectTo: 'participate/deposit/learn-how',
|
2021-07-14 16:51:20 +02:00
|
|
|
pathMatch: 'full' },
|
|
|
|
{ path: 'participate/share-zenodo',
|
2021-04-01 16:25:15 +02:00
|
|
|
redirectTo: '/participate/deposit/zenodo',
|
2021-07-14 16:51:20 +02:00
|
|
|
pathMatch: 'full' },
|
2021-04-01 16:25:15 +02:00
|
|
|
{
|
|
|
|
path: 'participate/deposit/learn-how',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./deposit/deposit.module').then(m => m.LibDepositModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'participate/deposit/search',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./deposit/searchDataprovidersToDeposit.module').then(m => m.LibSearchDataprovidersToDepositModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'participate/deposit/zenodo',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./deposit/zenodo/shareInZenodo.module').then(m => m.ShareInZenodoModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
/** Linking Pages */
|
2023-07-07 09:12:25 +02:00
|
|
|
{
|
|
|
|
path: 'myclaims', loadChildren: () => import('./claims/myClaims/myClaims.module').then(m => m.LibMyClaimsModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2023-07-07 09:12:25 +02:00
|
|
|
},
|
2021-04-01 16:25:15 +02:00
|
|
|
{
|
|
|
|
path: 'participate/claim',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./claims/linking/linkingGeneric.module').then(m => m.LibLinkingGenericModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'participate/direct-claim',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./claims/directLinking/directLinking.module').then(m => m.LibDirectLinkingModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-01 16:25:15 +02:00
|
|
|
},
|
2021-04-08 12:58:48 +02:00
|
|
|
{
|
|
|
|
path: 'preview',
|
2021-07-14 16:51:20 +02:00
|
|
|
loadChildren: () => import('./demo/demo.module').then(m => m.DemoModule),
|
2024-03-06 10:17:01 +01:00
|
|
|
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
2021-04-08 12:58:48 +02:00
|
|
|
},
|
2021-04-01 16:25:15 +02:00
|
|
|
/** help pages - do not exist in Admin portal/api/db */
|
2023-07-07 09:12:25 +02:00
|
|
|
{
|
|
|
|
path: 'reload',
|
|
|
|
loadChildren: () => import('./reload/libReload.module').then(m => m.LibReloadModule),
|
|
|
|
data: {hasQuickContact: false}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'user-info',
|
|
|
|
loadChildren: () => import('./login/libUser.module').then(m => m.LibUserModule),
|
|
|
|
data: {hasQuickContact: false}
|
|
|
|
},
|
|
|
|
{path: 'error', component: OpenaireErrorPageComponent, data: {hasQuickContact: false}},
|
|
|
|
{
|
|
|
|
path: 'theme',
|
|
|
|
loadChildren: () => import('./openaireLibrary/utils/theme/theme.module').then(m => m.ThemeModule),
|
|
|
|
data: {hasQuickContact: false}
|
|
|
|
},
|
|
|
|
{path: '**', pathMatch: 'full', component: OpenaireErrorPageComponent, data: {hasQuickContact: false}}
|
2018-02-12 12:41:40 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
2021-04-20 17:20:05 +02:00
|
|
|
imports: [RouterModule.forRoot(routes, {
|
2021-07-14 16:51:20 +02:00
|
|
|
onSameUrlNavigation: "reload"
|
2021-04-20 17:20:05 +02:00
|
|
|
})],
|
2021-04-01 16:25:15 +02:00
|
|
|
exports: [RouterModule]
|
2018-02-12 12:41:40 +01:00
|
|
|
})
|
2021-04-01 16:25:15 +02:00
|
|
|
export class AppRoutingModule {
|
|
|
|
}
|