From 1a960061b6674a7f62fb5cfbac3286fb57907f34 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 6 Sep 2023 14:55:29 +0300 Subject: [PATCH] [Library | develop]: landing-utils/fos.component.ts & fos/fos.component.ts: Removed environment check and always use foslabel parameter for search. --- fos/fos.component.ts | 2 +- landingPages/landing-utils/fos.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fos/fos.component.ts b/fos/fos.component.ts index 9aec0606..c02b6bed 100644 --- a/fos/fos.component.ts +++ b/fos/fos.component.ts @@ -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)}; } } diff --git a/landingPages/landing-utils/fos.component.ts b/landingPages/landing-utils/fos.component.ts index fece3437..4dfc59e6 100644 --- a/landingPages/landing-utils/fos.component.ts +++ b/landingPages/landing-utils/fos.component.ts @@ -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)); } }