Skip to content

Commit

Permalink
Merge pull request #1071 from geonetwork/backport/1068-to-2.3.x
Browse files Browse the repository at this point in the history
[Backport 2.3.x] Datahub: Use url instead of proxy url for ogc api endpoint
  • Loading branch information
jahow authored Dec 20, 2024
2 parents 73ff485 + 38213a8 commit ecc0e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/feature/dataviz/src/lib/service/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class DataService {
}

async getDownloadUrlsFromOgcApi(url: string): Promise<OgcApiCollectionInfo> {
const endpoint = new OgcApiEndpoint(this.proxy.getProxiedUrl(url))
const endpoint = new OgcApiEndpoint(url)
return await endpoint.allCollections
.then((collections) => {
return endpoint.getCollectionInfo(collections[0].name)
Expand All @@ -185,7 +185,7 @@ export class DataService {
}

async getItemsFromOgcApi(url: string): Promise<OgcApiRecord> {
const endpoint = new OgcApiEndpoint(this.proxy.getProxiedUrl(url))
const endpoint = new OgcApiEndpoint(url)
return await endpoint.featureCollections
.then((collections) => {
return collections.length
Expand Down

0 comments on commit ecc0e43

Please sign in to comment.