From 315385ccbd7a30dcc093ae2237a385012e2548ec Mon Sep 17 00:00:00 2001 From: gnezim Date: Sat, 18 Apr 2026 21:24:27 +0300 Subject: [PATCH] Breadcrumbs: use BOARD.TITLE, drop flight-number leaf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Angular's details breadcrumb trail is just 'Главная / Онлайн-Табло' (BOARD.TITLE with capital Т) — the flight number itself is NOT a breadcrumb entry. React was using the lowercase 'Онлайн-табло' translation and appending 'SU 6272'. Align both the leaf text and the list depth with Angular. --- .../components/OnlineBoardDetailsPage.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/features/online-board/components/OnlineBoardDetailsPage.tsx b/src/features/online-board/components/OnlineBoardDetailsPage.tsx index a4978b45..c62d1c64 100644 --- a/src/features/online-board/components/OnlineBoardDetailsPage.tsx +++ b/src/features/online-board/components/OnlineBoardDetailsPage.tsx @@ -461,11 +461,12 @@ export const OnlineBoardDetailsPage: FC = ({ ); const onlineboardHref = `/${locale}/onlineboard`; + // Angular uses the 'Онлайн-Табло' title (BOARD.TITLE) as the sole + // breadcrumb leaf — the flight number itself is NOT a breadcrumb entry. + const rootBreadcrumbLabel = t("BOARD.TITLE"); const commonLayoutProps = { headerLeft: , - breadcrumbs: [ - { label: t("BREADCRUMBS.ONLINEBOARD"), url: onlineboardHref }, - ], + breadcrumbs: [{ label: rootBreadcrumbLabel, url: onlineboardHref }], }; if (loading) { @@ -516,10 +517,7 @@ export const OnlineBoardDetailsPage: FC = ({ } title={

{pageTitle}

} - breadcrumbs={[ - { label: t("BREADCRUMBS.ONLINEBOARD"), url: onlineboardHref }, - { label: flightNumber }, - ]} + breadcrumbs={[{ label: rootBreadcrumbLabel, url: onlineboardHref }]} contentLeft={