Skip to content

[Sync to prerelease] Fix preview comment showing .json paths instead of .html#1953

Merged
cderv merged 1 commit into
prereleasefrom
sync-1952-to-prerelease
Mar 10, 2026
Merged

[Sync to prerelease] Fix preview comment showing .json paths instead of .html#1953
cderv merged 1 commit into
prereleasefrom
sync-1952-to-prerelease

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Description

Sync of #1952 to prerelease.

Original PR

Fix preview comment showing .json paths instead of .html

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.

(cherry picked from commit a08bd51)
@cderv
Copy link
Copy Markdown
Member

cderv commented Mar 10, 2026

/deploy-preview

@cderv cderv merged commit ea6524d into prerelease Mar 10, 2026
@cderv cderv deleted the sync-1952-to-prerelease branch March 10, 2026 10:33
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