Merge pull request #33549 from backstage/rugvip/hide-compat-wrapper-headers

core-compat-api: hide page header for compat-wrapped legacy pages
This commit is contained in:
Patrik Oldsberg
2026-03-30 21:22:19 +02:00
committed by GitHub
3 changed files with 7 additions and 0 deletions
@@ -0,0 +1,5 @@
---
'@backstage/core-compat-api': patch
---
Hide the default page header for pages created through the compatibility wrappers, since legacy plugins already render their own headers.
@@ -236,6 +236,7 @@ export function collectLegacyRoutes(
// todo(blam): why do we not use the inputs here?
return originalFactory({
path: normalizeRoutePath(path),
noHeader: true,
routeRef: routeRef ? convertLegacyRouteRef(routeRef) : undefined,
loader: async () =>
compatWrapper(
@@ -60,6 +60,7 @@ export function convertLegacyPageExtension(
name: overrides?.name ?? kebabName,
params: {
path: overrides?.path ?? `/${kebabName}`,
noHeader: true,
routeRef: mountPoint && convertLegacyRouteRef(mountPoint),
loader: async () => compatWrapper(element),
},