Merge pull request #30958 from backstage/blam/remove-superfluous-link

`org`: Fixing routing issue when Catalog index is mounted on `/`
This commit is contained in:
Ben Lambert
2025-08-21 14:44:28 +02:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-org': patch
---
Fixing issue with extra slash in the routing
@@ -135,6 +135,7 @@ export const ComponentsGrid = ({
entityLimit?: number;
}) => {
const catalogLink = useRouteRef(catalogIndexRouteRef);
if (!relationsType && !relationAggregation) {
throw new Error(
'The relationAggregation property must be set as an EntityRelationAggregation type.',
@@ -161,7 +162,7 @@ export const ComponentsGrid = ({
counter={c.counter}
kind={c.kind}
type={c.type}
url={catalogLink && `${catalogLink()}/?${c.queryParams}`}
url={catalogLink && `${catalogLink()}?${c.queryParams}`}
/>
</Grid>
))}