@adobe/helix-html-pipeline 5.13.15 → 5.13.17

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,17 @@
1
+ ## [5.13.17](https://github.com/adobe/helix-html-pipeline/compare/v5.13.16...v5.13.17) (2025-01-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * allow canonical URL to end with `index` but not `/index` ([#783](https://github.com/adobe/helix-html-pipeline/issues/783)) ([57c1247](https://github.com/adobe/helix-html-pipeline/commit/57c1247b0382286849879bac227ca9d048eda8da)), closes [#767](https://github.com/adobe/helix-html-pipeline/issues/767)
7
+
8
+ ## [5.13.16](https://github.com/adobe/helix-html-pipeline/compare/v5.13.15...v5.13.16) (2025-01-01)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * check for state.info ([#779](https://github.com/adobe/helix-html-pipeline/issues/779)) ([57a1818](https://github.com/adobe/helix-html-pipeline/commit/57a1818cce37b1cb4493b8e941a5df6e0d3b5eba)), closes [#778](https://github.com/adobe/helix-html-pipeline/issues/778)
14
+
1
15
  ## [5.13.15](https://github.com/adobe/helix-html-pipeline/compare/v5.13.14...v5.13.15) (2024-12-21)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "5.13.15",
3
+ "version": "5.13.17",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -88,11 +88,11 @@
88
88
  "js-yaml": "4.1.0",
89
89
  "jsdom": "25.0.1",
90
90
  "junit-report-builder": "5.1.1",
91
- "lint-staged": "15.2.11",
91
+ "lint-staged": "15.3.0",
92
92
  "mocha": "11.0.1",
93
93
  "mocha-multi-reporters": "1.5.1",
94
94
  "mocha-suppress-logs": "0.5.1",
95
- "semantic-release": "24.2.0"
95
+ "semantic-release": "24.2.1"
96
96
  },
97
97
  "lint-staged": {
98
98
  "*.js": "eslint",
package/src/forms-pipe.js CHANGED
@@ -108,6 +108,11 @@ export async function formsPipe(state, req) {
108
108
  res.headers.set('x-error', 'contentBusId missing');
109
109
  return res;
110
110
  }
111
+ if (!state.info) {
112
+ res.status = 400;
113
+ res.headers.set('x-error', 'no valid path');
114
+ return res;
115
+ }
111
116
 
112
117
  await fetchConfigAll(state, req, res);
113
118
  await authenticate(state, req, res);
@@ -54,7 +54,7 @@ export function makeCanonicalHtmlUrl(url) {
54
54
  if (base.endsWith('.html')) {
55
55
  base = base.substring(0, base.length - 5);
56
56
  }
57
- if (base.endsWith('index')) {
57
+ if (base.endsWith('/index')) {
58
58
  base = base.substring(0, base.length - 5);
59
59
  }
60
60
  return `${base}${query}`;