diff --git a/core-web/libs/data-access/src/lib/dot-site/dot-site.service.ts b/core-web/libs/data-access/src/lib/dot-site/dot-site.service.ts index df252aaa8146..28ca4e57ca54 100644 --- a/core-web/libs/data-access/src/lib/dot-site/dot-site.service.ts +++ b/core-web/libs/data-access/src/lib/dot-site/dot-site.service.ts @@ -49,7 +49,7 @@ export class DotSiteService { private siteURL(filter: string, perPage?: number): string { const paramPerPage = perPage || this.defaultPerpage; - const searchParam = `filter=${filter}&perPage=${paramPerPage}&${this.getQueryParams()}`; + const searchParam = `filter=${filter}&per_page=${paramPerPage}&${this.getQueryParams()}`; return `${this.BASE_SITE_URL}?${searchParam}`; } diff --git a/core-web/libs/edit-content/src/lib/services/dot-edit-content.service.ts b/core-web/libs/edit-content/src/lib/services/dot-edit-content.service.ts index a8838dbb5f6a..572b82fc7fb2 100644 --- a/core-web/libs/edit-content/src/lib/services/dot-edit-content.service.ts +++ b/core-web/libs/edit-content/src/lib/services/dot-edit-content.service.ts @@ -74,8 +74,8 @@ export class DotEditContentService { * @return {*} {Observable} * @memberof DotEditContentService */ - getSitesTreePath(): Observable { - return this.#siteService.getSites().pipe( + getSitesTreePath(filter = '*', perPage = 7000): Observable { + return this.#siteService.getSites(filter, perPage).pipe( map((sites) => { return sites.map((site) => ({ key: site.hostname,