Merge pull request #8243 from backstage/fix-badges-route-ref

Fix routing for Badges plugin
This commit is contained in:
Fredrik Adelöw
2021-11-25 13:03:05 +01:00
committed by GitHub
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`;