Skip to content

A platform for community discussion. Free, open, simple.

FIX: make crawler linkback list compatible with google schema guidelines.

Vinoth Kannanea423b471a03
diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb
index a395d4374e8..30b2cc4c755 100644
--- a/app/views/topics/show.html.erb
+++ b/app/views/topics/show.html.erb
@@ -105,11 +105,11 @@
<% @topic_view.link_counts[post.id].each_with_index do |link, i| %>
<% if link[:reflection] && link[:title].present? %>
<div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
- <a href="<%=link[:url]%>" itemprop='item'>
+ <a href="<%=link[:url]%>" itemscope itemtype='http://schema.org/DiscussionForumPosting' itemprop='item'>
<meta itemprop='url' content='<%=link[:url]%>'>
- <meta itemprop='position' content='<%= i+1 %>'>
<span itemprop='name'><%=link[:title]%></span>
</a>
+ <meta itemprop='position' content='<%= i+1 %>'>
</div>
<% end %>
<% end %>