From fc5b4c9aab047daa99053e5c34a8190244a379d3 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 6 May 2025 12:53:06 +0100 Subject: [PATCH 1/3] Export root route for home page Signed-off-by: Daniel --- plugins/home/src/alpha.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/home/src/alpha.tsx b/plugins/home/src/alpha.tsx index 74f96a2195..04d612ef1c 100644 --- a/plugins/home/src/alpha.tsx +++ b/plugins/home/src/alpha.tsx @@ -69,4 +69,7 @@ const homePage = PageBlueprint.makeWithOverrides({ export default createFrontendPlugin({ pluginId: 'home', extensions: [homePage], + routes: { + root: rootRouteRef, + }, }); From 195323fdde4505565e95a54930c145aecf9aae35 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 6 May 2025 13:01:47 +0100 Subject: [PATCH 2/3] Add changeset Signed-off-by: Daniel --- .changeset/puny-rice-sneeze.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/puny-rice-sneeze.md diff --git a/.changeset/puny-rice-sneeze.md b/.changeset/puny-rice-sneeze.md new file mode 100644 index 0000000000..1967b68dab --- /dev/null +++ b/.changeset/puny-rice-sneeze.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-home': patch +--- + +Export root page route from the home plugin to enable adding links/nav to it from outside the plugin From 60d118891c3b500a39df4336758f5bc1ace5adad Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 6 May 2025 15:35:34 +0100 Subject: [PATCH 3/3] Add API report change Signed-off-by: Daniel --- plugins/home/report-alpha.api.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/home/report-alpha.api.md b/plugins/home/report-alpha.api.md index 6033cb47f8..5e43163e31 100644 --- a/plugins/home/report-alpha.api.md +++ b/plugins/home/report-alpha.api.md @@ -13,7 +13,9 @@ import { RouteRef } from '@backstage/frontend-plugin-api'; // @alpha (undocumented) const _default: FrontendPlugin< - {}, + { + root: RouteRef; + }, {}, { 'page:home': ExtensionDefinition<{