Skip to content
SprecherEast
Issue 492

Search result cards show a post's source too

Back to our plan
Done
enhancementfrontendcmspriority: low

Type

enhancement

Problem

#491 shows a post's source on its card in /posts, the archive block and related posts. Cards in /search show none, because the search plugin's entries don't copy sourceName and sourceUrl. So the same post looks different depending on where it appears. The review of #491 raised this (nit 3).

Proposed fix

Copy sourceName and sourceUrl into the search entry for posts (the search plugin's beforeSync, in src/modules/news/cms/searchSync.ts, with matching fields in searchFields.ts). Then map them into the search card's source the same way as other post cards, keeping only http(s) links. A migration adds the columns, and the search index is rebuilt.

Acceptance criteria

  • A post with a source shows the same source line on its search card as on /posts.
  • A test covers the sync and the mapper.

Area

frontend, cms

Priority

low


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab