.forge/issues/66e7353a-2898-4d28-822d-47c7aee9c862/issue.md 1.5 KiB 44 lines Raw

id: 66e7353a-2898-4d28-822d-47c7aee9c862 title: public-origin postprocessor rewrites raw and release artifact HTML state: closed labels:


What

absolutize_social_meta() walks the whole output tree and rewrites every .html file:

src/build.rs:1312-1334:

That includes committed raw HTML under raw/ and copied release artifacts under releases/<version>/, not just generated pages.

Reproduced

A repo with raw/x.html containing invalid UTF-8:

hu13 build . -o out --public-origin https://example.test
hu13: social meta read out/raw/raw/x.html: stream did not contain valid UTF-8

With valid raw HTML containing content="https://hu13.gl0w.world/og.png", the copied bytes are silently rewritten to the absolute URL. Same for release artifact HTML.

Impact

Fix

view raw