chore: fix a small issue witih the badge url resolution
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-badges': patch
|
||||
---
|
||||
|
||||
Fix the path that the Badges client uses towards the `plugin-badges-backend`
|
||||
@@ -52,7 +52,7 @@ export class BadgesClient implements BadgesApi {
|
||||
|
||||
private async getEntityBadgeSpecsUrl(entity: Entity): Promise<string> {
|
||||
const routeParams = this.getEntityRouteParams(entity);
|
||||
const path = generatePath(`:kind/:namespace/:name`, routeParams);
|
||||
const path = generatePath(`:namespace/:kind/:name`, routeParams);
|
||||
return `${await this.discoveryApi.getBaseUrl(
|
||||
'badges',
|
||||
)}/entity/${path}/badge-specs`;
|
||||
|
||||
Reference in New Issue
Block a user