diff --git a/services/plugins.service.ts b/services/plugins.service.ts index e50d98d2..4c5fc032 100644 --- a/services/plugins.service.ts +++ b/services/plugins.service.ts @@ -53,12 +53,12 @@ export class PluginsService { getPluginTemplatesByPage(pid: string, pageId: string) { return this.http.get>(properties.adminToolsAPIURL + properties.adminToolsPortalType + '/' + pid + '/pluginTemplates/page/' + pageId); } - getPluginsByPageRoute(api:string, pid:string, route:string){ - let url = api + 'community/' +pid+'/plugins/page/route?route=' + route; + getPluginsByPageRoute(pid:string, route:string){ + let url = properties.adminToolsAPIURL + 'community/' +pid+'/plugins/page/route?route=' + route; return this.http.get>(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) : */url); } - getPluginTemplatesByPageRoute(api:string, pid:string, route:string){ - let url = api + 'community/' + pid + '/pluginTemplates/page/route?route=' + route; + getPluginTemplatesByPageRoute(pid:string, route:string){ + let url = properties.adminToolsAPIURL + 'community/' + pid + '/pluginTemplates/page/route?route=' + route; return this.http.get>(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) :*/ url); }