[Library | develop]: landing-utils/fos.component.ts & fos/fos.component.ts: Removed environment check and always use foslabel parameter for search.

This commit is contained in:
Konstantina Galouni 2023-09-06 14:55:29 +03:00
parent 7709352f68
commit 1a960061b6
2 changed files with 3 additions and 3 deletions

View File

@ -216,6 +216,6 @@ export class FosComponent implements OnInit, OnDestroy {
}
public buildFosQueryParam(fos) {
return (properties.environment !== 'production' ? ({'foslabel': this.urlEncodeAndQuote(fos.id+"||"+fos.label)}) : ({'fos': this.urlEncodeAndQuote(fos.id)}));
return {'foslabel': this.urlEncodeAndQuote(fos.id+"||"+fos.label)};
}
}

View File

@ -121,10 +121,10 @@ export class FosComponent {
}
public buildFosQueryParam(fos) {
return (properties.environment !== 'production' ? ({'foslabel': this.urlEncodeAndQuote(fos.id+"||"+fos.label)}) : ({'fos': this.urlEncodeAndQuote(fos.id)}));
return {'foslabel': this.urlEncodeAndQuote(fos.id+"||"+fos.label)};
}
public buildFosHrefParam(fos): string {
return (properties.environment !== 'production' ? ('foslabel='+this.urlEncodeAndQuote(fos.id+"||"+fos.label)) : ('fos='+this.urlEncodeAndQuote(fos.id)));
return ('foslabel='+this.urlEncodeAndQuote(fos.id+"||"+fos.label));
}
}