Skip to content

Fix preview comment showing .json paths instead of .html#1952

Merged
cderv merged 1 commit into
mainfrom
fix/preview-comment-json-ext
Mar 10, 2026
Merged

Fix preview comment showing .json paths instead of .html#1952
cderv merged 1 commit into
mainfrom
fix/preview-comment-json-ext

Conversation

@cderv
Copy link
Copy Markdown
Member

@cderv cderv commented Mar 10, 2026

Preview deploy comments showed source file paths (e.g. epub.json) as link text instead of the rendered page path (epub.html) for single-file entries. Multi-file entries already used the page path.

Noticed in #1951.

Fix

Use the resolved page variable as link text instead of the raw source filename.

Fixes the inconsistency introduced in #1948.

…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.
@cderv cderv merged commit a08bd51 into main Mar 10, 2026
@cderv cderv deleted the fix/preview-comment-json-ext branch March 10, 2026 10:28
@github-actions
Copy link
Copy Markdown
Contributor

Successfully created backport PR for prerelease:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant