diff --git a/ui/apps/ui/src/app/components/recommendations-widget/adapter/adapter.ts b/ui/apps/ui/src/app/components/recommendations-widget/adapter/adapter.ts index b535cbf8..c4d82425 100644 --- a/ui/apps/ui/src/app/components/recommendations-widget/adapter/adapter.ts +++ b/ui/apps/ui/src/app/components/recommendations-widget/adapter/adapter.ts @@ -34,16 +34,13 @@ const urlAdapter = ( return toArray(data.url)[0] ?? ''; } }; -const SERVICES_AS_DATASOURCES = ['b2share', 'b2find', 'b2safe']; + export const hackDataSourceUrl = (pid?: string) => { if (!pid) { pid = ''; } - if (SERVICES_AS_DATASOURCES.includes(pid)) { - return `${environment.betaMarketplace}services/${pid}`; - } - return `${environment.betaMarketplace}datasources/${pid}`; + return `${environment.betaMarketplace}services/${pid}`; }; export const adapter = (