diff --git a/packages/catalog-client/src/CatalogClient.ts b/packages/catalog-client/src/CatalogClient.ts index b2420bc71b..75944467d8 100644 --- a/packages/catalog-client/src/CatalogClient.ts +++ b/packages/catalog-client/src/CatalogClient.ts @@ -54,7 +54,9 @@ export class CatalogClient implements CatalogApi { const { kind, namespace, name } = parseEntityRef(request.entityRef); return await this.requestRequired( 'GET', - `/entities/by-name/${kind}/${namespace}/${name}/ancestry`, + `/entities/by-name/${encodeURIComponent(kind)}/${encodeURIComponent( + namespace, + )}/${encodeURIComponent(name)}/ancestry`, options, ); }