diff --git a/services/help-content.service.ts b/services/help-content.service.ts index 7f0635a7..4fd3d156 100644 --- a/services/help-content.service.ts +++ b/services/help-content.service.ts @@ -252,8 +252,8 @@ export class HelpContentService { .pipe(catchError(this.handleError)); } // End of replacing part of getPages (now getAllPages) - - getAllPages(helpContentUrl:string) {//,pid:string,with_positions:boolean=null) { +//TODO double check with konstantina - there is no param that we are asking the community pages. without pid we get all portalTypes + getAllPages(helpContentUrl:string, pid:string = null) {//with_positions:boolean=null) { // let parameters: string = ""; // if(pid || with_positions == true || with_positions == false) { // parameters = "?"; @@ -264,7 +264,7 @@ export class HelpContentService { // parameters += "&with_positions="+with_positions; // } // } - return this.http.get>(helpContentUrl + 'page') + return this.http.get>(helpContentUrl + 'page' + (pid?"pid="+pid:"")) //.map(res => > res.json()) .pipe(catchError(this.handleError)); }