Issue 1011
Event pages without a search title show the site name twice
Back to our planDone
bugfrontendpriority: medium
Problem
In plain words: an event with no search title of its own shows "Sprecher East — Sprecher East" in the browser tab and in link previews, so a shared link does not say what the event is. Found by the copy audit on #1003 on about ten events.
Where: src/platform/seo/generateMeta.ts falls back to the site name when a document has no meta title, instead of the document's own title.
Proposed fix
Fall back to the document's title, then the site name. Test first.
Acceptance criteria
- Not done: A test fails on the current code and passes with the fix: a document with a title and no meta title gets "<its title> — Sprecher East".
- Not done: A document with neither still gets the site name once, not twice.
- Not done: The note that describes page titles is updated in the same PR.
Files likely touched
src/platform/seo/generateMeta.ts, its test, src/platform/payload/README.md
Must not touch
None
Area
frontend
Priority
medium
Generated by Claude Code, opens in a new tab