@adobe/helix-html-pipeline 6.26.0 → 6.26.1
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 +7 -0
- package/package.json +7 -7
- package/src/steps/utils.js +10 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.26.1](https://github.com/adobe/helix-html-pipeline/compare/v6.26.0...v6.26.1) (2025-07-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* also treat self-ref links to index.plain.html correctly ([#732](https://github.com/adobe/helix-html-pipeline/issues/732)) ([cc37a31](https://github.com/adobe/helix-html-pipeline/commit/cc37a3191199660b06977174c33fd61ce582511a))
|
|
7
|
+
|
|
1
8
|
# [6.26.0](https://github.com/adobe/helix-html-pipeline/compare/v6.25.5...v6.26.0) (2025-06-26)
|
|
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.
|
|
3
|
+
"version": "6.26.1",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"unist-util-visit-parents": "6.0.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
74
|
-
"@eslint/config-helpers": "0.
|
|
73
|
+
"@adobe/eslint-config-helix": "3.0.6",
|
|
74
|
+
"@eslint/config-helpers": "0.3.0",
|
|
75
75
|
"@markedjs/html-differ": "5.0.2",
|
|
76
76
|
"@semantic-release/changelog": "6.0.3",
|
|
77
77
|
"@semantic-release/git": "10.0.1",
|
|
78
|
-
"@semantic-release/npm": "12.0.
|
|
78
|
+
"@semantic-release/npm": "12.0.2",
|
|
79
79
|
"c8": "10.1.3",
|
|
80
80
|
"eslint": "9.4.0",
|
|
81
81
|
"eslint-import-resolver-exports": "1.0.0-beta.5",
|
|
@@ -87,10 +87,10 @@
|
|
|
87
87
|
"jsdom": "26.1.0",
|
|
88
88
|
"junit-report-builder": "5.1.1",
|
|
89
89
|
"lint-staged": "16.1.2",
|
|
90
|
-
"mocha": "11.7.
|
|
90
|
+
"mocha": "11.7.1",
|
|
91
91
|
"mocha-multi-reporters": "1.5.1",
|
|
92
|
-
"mocha-suppress-logs": "0.
|
|
93
|
-
"semantic-release": "24.2.
|
|
92
|
+
"mocha-suppress-logs": "0.6.0",
|
|
93
|
+
"semantic-release": "24.2.6"
|
|
94
94
|
},
|
|
95
95
|
"lint-staged": {
|
|
96
96
|
"*.js": "eslint",
|
package/src/steps/utils.js
CHANGED
|
@@ -212,10 +212,18 @@ export function rewriteUrl(state, url) {
|
|
|
212
212
|
|| host === state.previewHost
|
|
213
213
|
|| host === state.liveHost) {
|
|
214
214
|
if (hash && state.info?.path) {
|
|
215
|
-
if (pathname === state.info.path
|
|
216
|
-
|| (pathname.endsWith('.plain.html') && pathname.substring(0, pathname.length - 11) === state.info.path)) {
|
|
215
|
+
if (pathname === state.info.path) {
|
|
217
216
|
return hash;
|
|
218
217
|
}
|
|
218
|
+
if (pathname.endsWith('.plain.html')) {
|
|
219
|
+
let resource = pathname.substring(0, pathname.length - 11);
|
|
220
|
+
if (resource.endsWith('/index')) {
|
|
221
|
+
resource = resource.substring(0, resource.length - 5);
|
|
222
|
+
}
|
|
223
|
+
if (resource === state.info.path) {
|
|
224
|
+
return hash;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
219
227
|
}
|
|
220
228
|
return `${pathname}${search}${hash}`;
|
|
221
229
|
}
|