diff --git a/apps/storefront/src/components/layout/B3Layout.tsx b/apps/storefront/src/components/layout/B3Layout.tsx index 89a838ba..a3299695 100644 --- a/apps/storefront/src/components/layout/B3Layout.tsx +++ b/apps/storefront/src/components/layout/B3Layout.tsx @@ -92,7 +92,7 @@ export function B3Layout({ useEffect(() => { const itemsRoutes = routes.filter((item: RouteItem) => item.path === location.pathname) if (itemsRoutes.length && location.pathname !== '/quoteDraft') { - setTitle(itemsRoutes[0].name) + setTitle(itemsRoutes[0].pageTitle || itemsRoutes[0].name) } else { setTitle('') } diff --git a/apps/storefront/src/shared/routes/routes.ts b/apps/storefront/src/shared/routes/routes.ts index 97547802..fde019c7 100644 --- a/apps/storefront/src/shared/routes/routes.ts +++ b/apps/storefront/src/shared/routes/routes.ts @@ -61,6 +61,7 @@ export interface RouteItem extends RouteItemBasic { wsKey: string, configKey?: string, isTokenLogin: boolean, + pageTitle?: string, } export interface RouteFirstLevelItem extends RouteItemBasic{ @@ -194,6 +195,7 @@ const routes: RouteItem[] = [ { path: '/purchased-products', name: 'Quick Order', + pageTitle: 'Purchase products', wsKey: 'quickorder', isMenuItem: true, component: Quickorder,