[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:
parent
7709352f68
commit
1a960061b6
|
@ -216,6 +216,6 @@ export class FosComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
public buildFosQueryParam(fos) {
|
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)};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,10 +121,10 @@ export class FosComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
public buildFosQueryParam(fos) {
|
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 {
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue