@adobe/helix-html-pipeline 6.26.2 → 6.26.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.26.3](https://github.com/adobe/helix-html-pipeline/compare/v6.26.2...v6.26.3) (2025-07-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * set url based on canonical ([#903](https://github.com/adobe/helix-html-pipeline/issues/903)) ([a4960cb](https://github.com/adobe/helix-html-pipeline/commit/a4960cb92fdc1303fff46a417cf0a5c0550ca430))
7
+
1
8
  ## [6.26.2](https://github.com/adobe/helix-html-pipeline/compare/v6.26.1...v6.26.2) (2025-07-01)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.26.2",
3
+ "version": "6.26.3",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -254,7 +254,9 @@ export default function extractMetaData(state, req) {
254
254
  meta.url = `${meta.url}.${canonicalExt}`;
255
255
  }
256
256
 
257
- if (!('canonical' in meta)) {
257
+ if ('canonical' in meta) {
258
+ meta.url = meta.canonical;
259
+ } else {
258
260
  meta.canonical = meta.url;
259
261
  }
260
262