chore: fix a small issue witih the badge url resolution

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-11-25 12:05:53 +01:00
parent 5f7033c7bd
commit 4149d74c10
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-badges': patch
---
Fix the path that the Badges client uses towards the `plugin-badges-backend`
+1 -1
View File
@@ -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`;