Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/breadcrumbs/src/lib/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ export interface BreadcrumbsProps extends Omit<MuiBreadcrumbsProps, 'separator'
/** The value to display when the active page or an ancestor does not have a value.
* @default ... */
emptyState?: string;
/** The target on the Home link
* @default _self
*/
homeTarget?: string;
/** Url for the Home route.
* @default /public/apps/dashboard */
homeUrl?: string;
Expand All @@ -52,6 +56,7 @@ export const Breadcrumbs = ({
children,
crumbs,
emptyState = '...',
homeTarget = '_self',
homeUrl = '/static/web/onb/onboarding-ui-apps/dashboard-ui/',
LinkProps,
...rest
Expand All @@ -64,7 +69,7 @@ export const Breadcrumbs = ({
slots={{ CollapsedIcon: MoreHorizontalIcon }}
aria-label={rest['aria-label'] || 'breadcrumbs'}
>
<Link aria-label="Home" href={homeUrl} loadApp={false}>
<Link aria-label="Home" href={homeUrl} target={homeTarget} loadApp={false}>
Home
</Link>
{crumbs &&
Expand Down
Loading