2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-03 22:05:52 +08:00
discourse/spec/views
Régis Hanol 58d298cae1
FIX: remove ItemList schema from linkbacks in crawler view (#36608)
Linkbacks (reflection links showing "topics that link here") were
incorrectly using schema.org/ItemList markup. This caused Google Rich
Results Test errors ("Multiple ListItem elements defined on page") when
combined with plugins like discourse-ai that add their own ItemList for
related topics.

ItemList is intended for curated/ranked lists (e.g., "Related Topics").
Linkbacks are automatic citations, not recommendations, so plain links
are semantically correct.

Also extracts `linkbacks_for(post)` helper to TopicView for cleaner
template code.

Internal ref - t/170560
2025-12-11 10:41:47 +01:00
..
list DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
topics FIX: remove ItemList schema from linkbacks in crawler view (#36608) 2025-12-11 10:41:47 +01:00