diff --git a/apps/meteor/client/components/Sidebar/SidebarGenericItem.tsx b/apps/meteor/client/components/Sidebar/SidebarGenericItem.tsx index b43509921c3..e1b862d1210 100644 --- a/apps/meteor/client/components/Sidebar/SidebarGenericItem.tsx +++ b/apps/meteor/client/components/Sidebar/SidebarGenericItem.tsx @@ -17,7 +17,14 @@ type SidebarGenericItemProps = { }; const SidebarGenericItem = ({ href, active, externalUrl, children, ...props }: SidebarGenericItemProps): ReactElement => ( - + {children} diff --git a/apps/meteor/client/components/Sidebar/SidebarNavigationItem.tsx b/apps/meteor/client/components/Sidebar/SidebarNavigationItem.tsx index a45cfec12f7..c596ce5d451 100644 --- a/apps/meteor/client/components/Sidebar/SidebarNavigationItem.tsx +++ b/apps/meteor/client/components/Sidebar/SidebarNavigationItem.tsx @@ -31,7 +31,8 @@ const SidebarNavigationItem: FC = ({ badge: Badge, }) => { const params = useMemo(() => ({ group: pathGroup }), [pathGroup]); - const path = useRoutePath(pathSection, params); + const routePath = useRoutePath(pathSection, params); + const path = externalUrl ? pathSection : routePath; const isActive = !!path && currentPath?.includes(path as string); if (permissionGranted === false || (typeof permissionGranted === 'function' && !permissionGranted())) {