image previews not opening in the preview browser #53

Closed
opened 2026-07-20 16:56:56 +00:00 by hugo · 1 comment
Owner

instead of showing the image, when a post links to for example /media/2022/11/20221111_0177.jpg, the image link is broken because there is an error "preview asset not found" when opening that image link. This might also happen during rendering, I did not test that, I only tested preview.

instead of showing the image, when a post links to for example /media/2022/11/20221111_0177.jpg, the image link is broken because there is an error "preview asset not found" when opening that image link. This might also happen during rendering, I did not test that, I only tested preview.
hugo added the bug label 2026-07-20 16:57:03 +00:00
Author
Owner

Implemented and pushed as 5726b92.

The renderer now builds the media rewrite table from every project media record, matching bDS2 original-name aliases and resolving both bds-media IDs and canonical paths to the stored media file. The same mapping is used by draft preview and static generation, preserving query strings and fragments. A real preview-server regression test verifies alias rewriting, bds-media embedding, JPEG MIME/body delivery, and generated HTML.

Verification: focused end-to-end preview test, cargo build --workspace, cargo test --workspace, clippy with warnings denied, Allium check/analyse, and a neutral comparison against issue #53, bDS2, and the rendering/preview specifications. No completeness gaps remained.

Implemented and pushed as 5726b92. The renderer now builds the media rewrite table from every project media record, matching bDS2 original-name aliases and resolving both bds-media IDs and canonical paths to the stored media file. The same mapping is used by draft preview and static generation, preserving query strings and fragments. A real preview-server regression test verifies alias rewriting, bds-media embedding, JPEG MIME/body delivery, and generated HTML. Verification: focused end-to-end preview test, cargo build --workspace, cargo test --workspace, clippy with warnings denied, Allium check/analyse, and a neutral comparison against issue #53, bDS2, and the rendering/preview specifications. No completeness gaps remained.
hugo closed this issue 2026-07-20 17:42:25 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hugo/RuDS#53