From 8849f12ae2d36f30eae98212d6578b330284bd17 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 2 Jun 2022 18:43:52 +0300 Subject: [PATCH] Add property errorLink --- src/app/app.component.ts | 2 +- src/app/openaireLibrary | 2 +- src/environments/environment.beta.ts | 1 + src/environments/environment.prod.ts | 1 + src/environments/environment.ts | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 9dbf088..98580cc 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -341,7 +341,7 @@ export class AppComponent implements OnInit, OnDestroy { } } }else if (this.community && this.community.status == "hidden") { - this.router.navigate(['/error']); + this.router.navigate([this.properties.errorLink]); }else{ this.router.navigate(['/'], this.community && this.community.status ? { queryParamsHandling: "merge" } : {}); } diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index bc5f586..6663dee 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit bc5f5860f955c47eb4205e7dc6f2d2450d5edaf6 +Subproject commit 6663dee50814c4e6efb196cc02aa0ec59e715e68 diff --git a/src/environments/environment.beta.ts b/src/environments/environment.beta.ts index 964a9e0..0b0929b 100644 --- a/src/environments/environment.beta.ts +++ b/src/environments/environment.beta.ts @@ -102,6 +102,7 @@ export let properties: EnvProperties = { searchLinkToAdvancedDataProviders: "/search/advanced/dataproviders", searchLinkToAdvancedOrganizations: "/search/advanced/organizations", searchLinkToAdvancedResults: "/search/advanced/research-outcomes", + errorLink: '/error', lastIndexInformationLink: "https://beta.openaire.eu/aggregation-and-content-provision-workflows", showLastIndexInformationLink: true, widgetLink: "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=", diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 64aba13..8a58691 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -102,6 +102,7 @@ export let properties: EnvProperties = { searchLinkToAdvancedDataProviders: "/search/advanced/dataproviders", searchLinkToAdvancedOrganizations: "/search/advanced/organizations", searchLinkToAdvancedResults: "/search/advanced/research-outcomes", + errorLink: '/error', lastIndexInformationLink: "https://www.openaire.eu/aggregation-and-content-provision-workflows", showLastIndexInformationLink: true, widgetLink: "https://www.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=", diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 4108a07..59091f1 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -107,6 +107,7 @@ export let properties: EnvProperties = { searchLinkToAdvancedDataProviders: '/search/advanced/dataproviders', searchLinkToAdvancedOrganizations: '/search/advanced/organizations', searchLinkToAdvancedResults: '/search/advanced/research-outcomes', + errorLink: '/error', lastIndexInformationLink: 'https://beta.openaire.eu/aggregation-and-content-provision-workflows', showLastIndexInformationLink: true, widgetLink: 'https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=',