@adobe/aem-cli 16.16.0 → 16.16.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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [16.16.1](https://github.com/adobe/helix-cli/compare/v16.16.0...v16.16.1) (2025-11-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **html-folder:** support index files for directory requests with trailing slash ([#2632](https://github.com/adobe/helix-cli/issues/2632)) ([55d782d](https://github.com/adobe/helix-cli/commit/55d782db744a43841fb9da08354a8d22d8d14dd7))
7
+
1
8
  # [16.16.0](https://github.com/adobe/helix-cli/compare/v16.15.13...v16.16.0) (2025-11-13)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/aem-cli",
3
- "version": "16.16.0",
3
+ "version": "16.16.1",
4
4
  "description": "AEM CLI",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -259,7 +259,12 @@ export class HelixServer extends BaseServer {
259
259
  }
260
260
 
261
261
  // Extract the path within the HTML folder
262
- const relativePath = pathname.slice(folderPrefix.length);
262
+ let relativePath = pathname.slice(folderPrefix.length);
263
+
264
+ // Handle directory requests (trailing slash) by appending 'index'
265
+ if (relativePath === '' || relativePath.endsWith('/')) {
266
+ relativePath = `${relativePath}index`.replace(/\/+/g, '/');
267
+ }
263
268
 
264
269
  // Resolve which file to serve (.html or .plain.html)
265
270
  const resolvedFile = await this.resolveHtmlFolderFile(relativePath);