From 5ae738f15529f595ccacad4d037fb8586e1379c3 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 1 Jun 2022 15:48:57 +0300 Subject: [PATCH] [Library | new-theme]: [Bug fix] dataProvider.component.ts: Set typeQueryPathParam="services" when ?pid in url and type=="service". --- landingPages/dataProvider/dataProvider.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/landingPages/dataProvider/dataProvider.component.ts b/landingPages/dataProvider/dataProvider.component.ts index 216f6ea8..8197b7d0 100644 --- a/landingPages/dataProvider/dataProvider.component.ts +++ b/landingPages/dataProvider/dataProvider.component.ts @@ -190,6 +190,9 @@ export class DataProviderComponent { this.initMetaAndLinks("service"); } else if (data["pid"]) { this.identifier = Identifier.getIdentifierFromString(decodeURIComponent(data["pid"]), false); + if(this.type == "service") { + this.typeQueryPathParam = "services"; + } this.initMetaAndLinks(this.type); } if (this.datasourceId && StringUtils.isOpenAIREID(this.datasourceId) || (this.identifier)) {