diff --git a/.changeset/easy-wings-turn.md b/.changeset/easy-wings-turn.md new file mode 100644 index 0000000000..3ce4e76449 --- /dev/null +++ b/.changeset/easy-wings-turn.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-org': patch +--- + +Fixing issue with extra slash in the routing diff --git a/plugins/org/src/components/Cards/OwnershipCard/ComponentsGrid.tsx b/plugins/org/src/components/Cards/OwnershipCard/ComponentsGrid.tsx index 0c177f31a8..53626ad727 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/ComponentsGrid.tsx +++ b/plugins/org/src/components/Cards/OwnershipCard/ComponentsGrid.tsx @@ -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}`} /> ))}