Revision 59070
Added by Konstantina Galouni almost 4 years ago
compatibleDataProviders-routing.module.ts | ||
---|---|---|
4 | 4 |
import{OpenaireSearchCompatibleDataprovidersComponent} from './compatibleDataProviders.component'; |
5 | 5 |
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard'; |
6 | 6 |
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; |
7 |
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'; |
|
8 | 7 |
|
9 | 8 |
|
10 | 9 |
@NgModule({ |
11 | 10 |
imports: [ |
12 | 11 |
RouterModule.forChild([ |
13 |
{ path: '', component: OpenaireSearchCompatibleDataprovidersComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
|
12 |
{ path: '', component: OpenaireSearchCompatibleDataprovidersComponent, canActivate: [FreeGuard], data: { |
|
14 | 13 |
redirect: '/error', community : 'openaire' |
15 | 14 |
}, canDeactivate: [PreviousRouteRecorder] } |
16 | 15 |
|
Also available in: Unified diff
[Trunk | Explore]: Remove IsRouteEnabled guard from landing and search pages (these pages should load even when not active - existing links from other pages).