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 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<{ 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, + }, });