#115 templates: anchor community-page logo src to the page path #116

Merged
ben merged 1 commit from agent/issue-115 into main 2026-09-04 10:29:17 +00:00
Owner

The Poster template emitted a relative src="logo.svg", but the page is served at /c/<slug> (no trailing slash), so browsers requested /c/logo.svg → 404 and the hero medallion rendered broken on every live community page (seen on ngati-example).

Fix: derive the src from pageUrl's pathname → /c/<slug>/logo.svg, the exact route the dev server and Caddy both serve. Regression test updated to assert the anchored path.

make typecheck + make test (74) + make e2e (3, includes the branded community-page screenshot spec) all green locally.

Closes #115

The Poster template emitted a relative `src="logo.svg"`, but the page is served at `/c/<slug>` (no trailing slash), so browsers requested `/c/logo.svg` → 404 and the hero medallion rendered broken on every live community page (seen on ngati-example). Fix: derive the src from `pageUrl`'s pathname → `/c/<slug>/logo.svg`, the exact route the dev server and Caddy both serve. Regression test updated to assert the anchored path. `make typecheck` + `make test` (74) + `make e2e` (3, includes the branded community-page screenshot spec) all green locally. Closes #115
sandcastle: #115 — anchor the community-page logo src to the page path
All checks were successful
ci / seam (pull_request) Successful in 57s
810929ac79
The Poster template emitted a relative src="logo.svg", but the page is
served at /c/<slug> with no trailing slash, so browsers requested
/c/logo.svg (404) and the hero medallion rendered broken on every live
page. Derive the src from pageUrl's pathname instead, giving
/c/<slug>/logo.svg — the exact route both the dev server and Caddy
already serve.

Closes #115

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ben merged commit 9732e4445a into main 2026-09-04 10:29:17 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/coa!116
No description provided.