From c132507c0b6d674a62f7fbb85cdc55d2820c1aaf Mon Sep 17 00:00:00 2001
From: chasls2 <110061741+chasls2@users.noreply.github.com>
Date: Thu, 30 Jul 2026 16:02:29 -0500
Subject: [PATCH 1/2] FDG-11843
---
.../build-dataset-structured-data.helper.js | 2 +-
src/components/page-helmet/page-helmet.jsx | 17 +++++++----------
src/components/page-helmet/page-helmet.spec.js | 14 +++++++-------
3 files changed, 15 insertions(+), 18 deletions(-)
diff --git a/src/components/page-helmet/build-dataset-structured-data.helper.js b/src/components/page-helmet/build-dataset-structured-data.helper.js
index 12544a06d7..4bed207a46 100644
--- a/src/components/page-helmet/build-dataset-structured-data.helper.js
+++ b/src/components/page-helmet/build-dataset-structured-data.helper.js
@@ -65,7 +65,7 @@ const DatasetStructuredData = config => {
structuredData.distribution.forEach(d => (d.contentUrl = getUrl(config)));
structuredData.temporalCoverage = setTemporalCoverage(config);
- return JSON.stringify(structuredData);
+ return JSON.stringify(structuredData).replace(/ into built pages.
*/}
-
+
{title}
diff --git a/src/components/page-helmet/page-helmet.spec.js b/src/components/page-helmet/page-helmet.spec.js
index a13124c785..b1bb00a2d0 100644
--- a/src/components/page-helmet/page-helmet.spec.js
+++ b/src/components/page-helmet/page-helmet.spec.js
@@ -50,14 +50,14 @@ describe('page helmet', () => {
});
it('includes version-info', () => {
- const versionInfoScript = document.head.querySelector('script[data-testid="version-info"]');
+ const versionInfoScript = document.head.querySelector('meta[data-testid="version-info"]').content;
expect(versionInfoScript).toBeDefined();
- expect(versionInfoScript.innerHTML).toContain('TAG: 2021.5.1');
- expect(versionInfoScript.innerHTML).toContain('CURRENT BRANCH: prod');
- expect(versionInfoScript.innerHTML).toContain('COMMIT HASH: 123abc');
- expect(versionInfoScript.innerHTML).toContain('COMMIT MESSAGE: mock commit msg');
- expect(versionInfoScript.innerHTML).toContain('COMMIT DATE: date of commit');
- expect(versionInfoScript.innerHTML).toContain('ENV ID: production');
+ expect(versionInfoScript).toContain('TAG: 2021.5.1');
+ expect(versionInfoScript).toContain('CURRENT BRANCH: prod');
+ expect(versionInfoScript).toContain('COMMIT HASH: 123abc');
+ expect(versionInfoScript).toContain('COMMIT MESSAGE: mock commit msg');
+ expect(versionInfoScript).toContain('COMMIT DATE: date of commit');
+ expect(versionInfoScript).toContain('ENV ID: production');
});
it('does not include structured data when not needed', () => {
From c6c70e21f845e546f9fc4da987acad90a12c8a7e Mon Sep 17 00:00:00 2001
From: chasls2 <110061741+chasls2@users.noreply.github.com>
Date: Thu, 30 Jul 2026 16:25:07 -0500
Subject: [PATCH 2/2] FDG-11843
---
src/components/page-helmet/page-helmet.jsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/components/page-helmet/page-helmet.jsx b/src/components/page-helmet/page-helmet.jsx
index 93fd0bfebe..e01f6762e0 100644
--- a/src/components/page-helmet/page-helmet.jsx
+++ b/src/components/page-helmet/page-helmet.jsx
@@ -80,8 +80,9 @@ const PageHelmet = ({
data-testid="version-info"
name="build-info"
content={
- `TAG: ${latestTag} | CURRENT BRANCH: ${currentBranch} | COMMIT HASH: ${latestCommit?.hash} | COMMIT MESSAGE: ${latestCommit?.message} | ` +
- `COMMIT DATE: ${latestCommit?.date} | ENV ID: ${ENV_ID}`}
+ `\nTAG: ${latestTag} \nCURRENT BRANCH: ${currentBranch} \nCOMMIT MESSAGE: ${latestCommit?.message} ` +
+ `\nCOMMIT DATE: ${latestCommit?.date} \nENV ID: ${ENV_ID} \nCOMMIT HASH: ${latestCommit?.hash} `
+ }
/>