Skip to content

Commit a08bd51

Browse files
committed
Fix preview comment showing .json source paths instead of .html page URLs
The link text for single-file entries used the source filename (e.g. `epub.json`) instead of the rendered page path (`epub.html`), making the comment inconsistent with multi-file entries which already showed the page path.
1 parent 021f15c commit a08bd51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ jobs:
211211
for (const [page, files] of pageToFiles) {
212212
const fileUrl = `${deployUrl}/${page}`;
213213
if (files.length === 1) {
214-
commentBody += `- [${files[0]}](${fileUrl})\n`;
214+
commentBody += `- [${page}](${fileUrl})\n`;
215215
} else {
216216
// Multiple source files map to one page - show page with file summary
217217
const basenames = files.map(f => f.split('/').pop());

0 commit comments

Comments
 (0)