A platform for community discussion. Free, open, simple.
FIX: fixes for microdata schema rendering (#25082)
Arpit Jalan878d973d9079
diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erbindex 9b3f4ddd771..8e8fd4f9d4a 100644--- a/app/views/topics/show.html.erb+++ b/app/views/topics/show.html.erb@@ -36,7 +36,7 @@<%- if include_crawler_content? %><div itemscope itemtype='http://schema.org/DiscussionForumPosting'><meta itemprop='headline' content='<%= @topic_view.title %>'>- <meta itemprop='url' content='<%= @topic_view.absolute_url %>'>+ <link itemprop='url' href='<%= @topic_view.absolute_url %>'><% if @topic_view.topic.category.present? %><meta itemprop='articleSection' content='<%= @topic_view.topic.category.name %>'><% end %>@@ -67,7 +67,9 @@<% end %></span>- <link <%= post.is_first_post? ? "itemprop='mainEntityOfPage'" : "" %> href="<%= post.topic.url %>">+ <% if post.is_first_post? %>+ <link itemprop="mainEntityOfPage" href="<%= post.topic.url %>">+ <% end %><% if post.image_url %><link itemprop="image" href="<%= post.image_url %>">