[Library | new-theme]: [Bug fix] dataProvider.component.ts: Set typeQueryPathParam="services" when ?pid in url and type=="service".

This commit is contained in:
Konstantina Galouni 2022-06-01 15:48:57 +03:00
parent 0946bd73b5
commit 5ae738f155
1 changed files with 3 additions and 0 deletions

View File

@ -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)) {