encode kind, namespace and name
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user