Revision 58165
Added by Argiro Kokogiannaki about 4 years ago
searchOrganizations-routing.module.ts | ||
---|---|---|
5 | 5 |
|
6 | 6 |
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard'; |
7 | 7 |
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; |
8 |
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard' |
|
9 | 8 |
|
10 | 9 |
|
11 | 10 |
|
12 | 11 |
@NgModule({ |
13 | 12 |
imports: [ |
14 | 13 |
RouterModule.forChild([ |
15 |
{ path: '', component: OpenaireSearchOrganizationsComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
|
14 |
{ path: '', component: OpenaireSearchOrganizationsComponent, canActivate: [FreeGuard], data: { |
|
16 | 15 |
redirect: '/error', community : 'openaire' |
17 | 16 |
}, canDeactivate: [PreviousRouteRecorder] } |
18 | 17 |
|
Also available in: Unified diff
[Explore|Trunk]
Search Pages:
remove isRouteEnbaled Guard
for publications, software, datasets, other search pages create URL resolver component and redirect to search outcomes page with the proper entity selected