diff --git a/src-ts/tools/gamification-admin/game-lib/hooks/use-gamification-breadcrumb.hook.tsx b/src-ts/tools/gamification-admin/game-lib/hooks/use-gamification-breadcrumb.hook.tsx index f40aaa820..e5137a5da 100644 --- a/src-ts/tools/gamification-admin/game-lib/hooks/use-gamification-breadcrumb.hook.tsx +++ b/src-ts/tools/gamification-admin/game-lib/hooks/use-gamification-breadcrumb.hook.tsx @@ -7,7 +7,7 @@ export function useGamificationBreadcrumb(items: Array): Ar const breadcrumb: Array = [ { name: toolTitle, - url: rootRoute, + url: rootRoute || '/', }, ...items, ] diff --git a/src-ts/tools/gamification-admin/pages/create-badge/create-badge-form/create-badge-form.config.tsx b/src-ts/tools/gamification-admin/pages/create-badge/create-badge-form/create-badge-form.config.tsx index fc71f7c85..9e193a17d 100644 --- a/src-ts/tools/gamification-admin/pages/create-badge/create-badge-form/create-badge-form.config.tsx +++ b/src-ts/tools/gamification-admin/pages/create-badge/create-badge-form/create-badge-form.config.tsx @@ -27,7 +27,7 @@ export const createBadgeFormDef: FormDefinition = { { buttonStyle: 'icon-bordered', icon: IconOutline.ChevronLeftIcon, - route: rootRoute, + route: rootRoute || '/', size: 'lg', }, ],