|
|
|
@ -5,6 +5,7 @@ import {PreviousRouteRecorder} from "../../openaireLibrary/utils/piwik/previousR
|
|
|
|
|
import {OpenaireSearchRecommendedResultsForOrcidComponent} from "./searchRecommendedResultsForOrcid.component";
|
|
|
|
|
import {FreeGuard} from "../../openaireLibrary/login/freeGuard.guard";
|
|
|
|
|
import {LoginGuard} from "../../openaireLibrary/login/loginGuard.guard";
|
|
|
|
|
import {properties} from "../../../environments/environment";
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
@ -12,7 +13,7 @@ import {LoginGuard} from "../../openaireLibrary/login/loginGuard.guard";
|
|
|
|
|
// { path: '', component: OpenaireSearchMyResultsInOrcidComponent, canActivate: [IsRouteEnabled], data: {
|
|
|
|
|
{ path: '', component: OpenaireSearchRecommendedResultsForOrcidComponent,
|
|
|
|
|
canActivate: [LoginGuard], data: {
|
|
|
|
|
redirect: '/error', community : 'openaire'
|
|
|
|
|
redirect: properties.errorLink, community : 'openaire'
|
|
|
|
|
},
|
|
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
|
|
|
|
}
|
|
|
|
|