@adobe/aem-cli 16.16.0 → 16.16.2
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 +14 -0
- package/package.json +1 -1
- package/src/server/HelixServer.js +6 -1
- package/src/server/utils.js +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [16.16.2](https://github.com/adobe/helix-cli/compare/v16.16.1...v16.16.2) (2025-11-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **html-folder:** add missing <title> tag for .plain.html files ([c7fe861](https://github.com/adobe/helix-cli/commit/c7fe8619a89acea24c86076cfa17af506a4d257d))
|
|
7
|
+
|
|
8
|
+
## [16.16.1](https://github.com/adobe/helix-cli/compare/v16.16.0...v16.16.1) (2025-11-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **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))
|
|
14
|
+
|
|
1
15
|
# [16.16.0](https://github.com/adobe/helix-cli/compare/v16.15.13...v16.16.0) (2025-11-13)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -259,7 +259,12 @@ export class HelixServer extends BaseServer {
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
// Extract the path within the HTML folder
|
|
262
|
-
|
|
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);
|
package/src/server/utils.js
CHANGED
|
@@ -725,6 +725,11 @@ window.LiveReloadOptions = {
|
|
|
725
725
|
const ogFields = ['title', 'description', 'image', 'url'];
|
|
726
726
|
let metaTags = '';
|
|
727
727
|
|
|
728
|
+
// Add <title> tag if title exists
|
|
729
|
+
if (title) {
|
|
730
|
+
metaTags += `<title>${utils.escapeHtml(title)}</title>`;
|
|
731
|
+
}
|
|
732
|
+
|
|
728
733
|
// eslint-disable-next-line no-restricted-syntax
|
|
729
734
|
for (const [key, value] of Object.entries(finalMetadata)) {
|
|
730
735
|
// Skip empty values
|