Skip to content

Commit

Permalink
Tweak breadcrumb target
Browse files Browse the repository at this point in the history
  • Loading branch information
jgyselov committed Aug 21, 2024
1 parent a194e3d commit 9f2ab8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/ui-lib/lib/ocm/components/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ export const UILibRoutes = ({

const routes = (
<Routes>
<Route path="clusters" element={<Outlet />}>
<Route path="assisted-installer/clusters" element={<Outlet />}>
<Route path="~new" element={<NewClusterPage />} />
<Route path=":clusterId" element={<ClusterPage />} />
<Route index element={<Clusters />} />
</Route>
{children}
<Route path="*" element={<Navigate to="clusters" />} />
<Route path="*" element={<Navigate to="assisted-installer/clusters" />} />
</Routes>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const ClusterBreadcrumbs = ({ clusterName }: { clusterName?: string }) => (
<PageSection variant={PageSectionVariants.light}>
{(clusterName || isInOcm) && (
<Breadcrumb>
<BreadcrumbItem render={() => <Link to={'/'}>Clusters</Link>} />
<BreadcrumbItem
render={() => <Link to={isInOcm ? '/cluster-list' : '..'}>Cluster List</Link>}
/>

{clusterName ? (
<BreadcrumbItem>
Expand Down

0 comments on commit 9f2ab8f

Please sign in to comment.