Skip to content

Commit cd6aeea

Browse files
committed
catalog-graph: add default route target
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
1 parent 863a800 commit cd6aeea

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/proud-readers-move.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@backstage/plugin-catalog-graph': patch
3+
---
4+
5+
The `catalogEntity` external route will now by default bind to the catalog entity page if it is available.

plugins/catalog-graph/src/routes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ export const catalogEntityRouteRef = createExternalRouteRef({
3838
id: 'catalog-entity',
3939
params: ['namespace', 'kind', 'name'],
4040
optional: true,
41+
defaultTarget: 'catalog.catalogEntity',
4142
});

0 commit comments

Comments
 (0)