diff --git a/pages/home.js b/pages/home.js index d4b32b1570..fe65676667 100644 --- a/pages/home.js +++ b/pages/home.js @@ -81,9 +81,7 @@ export default function Home(props) { {/* Primary HTML Meta Tags */} - {props.locale === "en" - ? pageData.scShortTitleEn - : pageData.scShortTitleFr} + {props.locale === "en" ? pageData.scTitleEn : pageData.scTitleFr} diff --git a/pages/projects/benefits-navigator/index.js b/pages/projects/benefits-navigator/index.js index f431fd23fe..f0ec76d8f7 100644 --- a/pages/projects/benefits-navigator/index.js +++ b/pages/projects/benefits-navigator/index.js @@ -300,10 +300,8 @@ export default function BenefitsNavigatorOverview(props) { id="pageMainTitle" title={ props.locale === "en" - ? pageData.scFragments[2].scContentEn.json[0].content[0] - .value - : pageData.scFragments[2].scContentFr.json[0].content[0] - .value + ? pageData.scTitleEn + : pageData.scTitleFr } /> diff --git a/pages/projects/oas-benefits-estimator/[id].js b/pages/projects/oas-benefits-estimator/[id].js index af7236e2c3..e3ee0dd1d0 100644 --- a/pages/projects/oas-benefits-estimator/[id].js +++ b/pages/projects/oas-benefits-estimator/[id].js @@ -191,9 +191,7 @@ export default function OASUpdatePage(props) { tabIndex="-1" id="pageMainTitle" title={ - props.locale === "en" - ? pageData.scFragments[1].scContentEn.json[0].content[0].value - : pageData.scFragments[1].scContentFr.json[0].content[0].value + props.locale === "en" ? pageData.scTitleEn : pageData.scTitleFr } />
diff --git a/pages/projects/oas-benefits-estimator/index.js b/pages/projects/oas-benefits-estimator/index.js index 86a2ec56ef..4269273f88 100644 --- a/pages/projects/oas-benefits-estimator/index.js +++ b/pages/projects/oas-benefits-estimator/index.js @@ -253,10 +253,8 @@ export default function OasBenefitsEstimator(props) { id="pageMainTitle" title={ props.locale === "en" - ? pageData.scFragments[0].scContentEn.json[0].content[0] - .value - : pageData.scFragments[0].scContentFr.json[0].content[0] - .value + ? pageData.scTitleEn + : pageData.scTitleFr } />