Skip to content

Commit ffb26dc

Browse files
authored
Resolve route conflicts (#5915)
Signed-off-by: gaelgoth <[email protected]>
1 parent 556b381 commit ffb26dc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@backstage-community/plugin-announcements': patch
3+
---
4+
5+
Fixed routing issue where some links were incorrectly redirecting to `/announcements/admin` instead of `/announcements`. Changed `<AnnouncementsAdminPortal />` from a routable extension to a component extension to resolve the mount point conflict with the main `<AnnouncementsPage />`.

workspaces/announcements/plugins/announcements/src/plugin.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ export const AnnouncementsPage = announcementsPlugin.provide(
7878
* @public
7979
*/
8080
export const AnnouncementsAdminPortal = announcementsPlugin.provide(
81-
createRoutableExtension({
81+
createComponentExtension({
8282
name: 'AnnouncementsAdminPortal',
83-
component: () => import('./components/Admin').then(m => m.AdminPortal),
84-
mountPoint: rootRouteRef,
83+
component: {
84+
lazy: () => import('./components/Admin').then(m => m.AdminPortal),
85+
},
8586
}),
8687
);
8788

0 commit comments

Comments
 (0)