@adobe/helix-html-pipeline 6.32.2 → 6.32.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [6.32.3](https://github.com/adobe/helix-html-pipeline/compare/v6.32.2...v6.32.3) (2026-09-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * resolve custom og:image/twitter:image metadata to absolute urls ([f9624e5](https://github.com/adobe/helix-html-pipeline/commit/f9624e5dc5b0588ac620ac6ed77fad8eb7c95268)), closes [#768](https://github.com/adobe/helix-html-pipeline/issues/768)
7
+
1
8
  ## [6.32.2](https://github.com/adobe/helix-html-pipeline/compare/v6.32.1...v6.32.2) (2026-09-17)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.32.2",
3
+ "version": "6.32.3",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -348,6 +348,22 @@ export default function extractMetaData(state, req) {
348
348
 
349
349
  meta.imageAlt = meta['image-alt'] ?? content.imageAlt;
350
350
 
351
+ // custom og:image/twitter:image overrides authored directly in the metadata block or sheet
352
+ // should be resolved to an absolute, optimized url, just like the default image, but only
353
+ // if they actually look like a url or path. plain text values are passed through as-is.
354
+ ['og:image', 'og:image:secure_url', 'twitter:image'].forEach((name) => {
355
+ const value = metaConfig[name];
356
+ if (value && /^(https?:\/\/|\.?\/)/.test(value)) {
357
+ try {
358
+ let img = rewriteUrl(state, value);
359
+ img = optimizeMetaImage(state.info.path, img);
360
+ metaConfig[name] = getAbsoluteUrl(state, img);
361
+ } catch (e) {
362
+ // ignore url errors
363
+ }
364
+ }
365
+ });
366
+
351
367
  // compute the final page metadata
352
368
  const metadata = {
353
369
  description: meta.description,