Skip to content

Commit f4c6dd9

Browse files
committed
fix(web): preserve trailing slash in template root
1 parent acf914c commit f4c6dd9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/generators/web/utils/processing.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ export async function processJSXEntries(entries, template) {
125125
// Step 3: Render final HTML pages
126126
const results = await Promise.all(
127127
entries.map(async ({ data }) => {
128-
const root = relativeOrAbsolute('/', data.path);
128+
const unresolvedRoot = relativeOrAbsolute('/', data.path);
129+
const root = unresolvedRoot.endsWith('/')
130+
? unresolvedRoot
131+
: `${unresolvedRoot}/`;
129132

130133
// Replace template placeholders with actual content
131134
const renderedHtml = populateWithEvaluation(template, {

0 commit comments

Comments
 (0)