Skip to content

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

FIX: ListItem can’t have itemprop=url and itemprop=item together

Joffrey JAFFEUX803968147c8d
diff --git a/app/views/categories/index.html.erb b/app/views/categories/index.html.erb
index b18334da5c0..32a789364b7 100644
--- a/app/views/categories/index.html.erb
+++ b/app/views/categories/index.html.erb
@@ -3,7 +3,6 @@
<% @category_list.categories.each_with_index do |c, index| %>
<div class='category' itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
<meta itemprop='position' content='<%= index %>'>
- <meta itemprop='url' content='<%= "#{Discourse.base_url}#{c.url}" %>'>
<h2>
<a href='<%= "#{Discourse.base_url}#{c.url}" %>' itemprop='item'>
<span itemprop='name'><%= c.name %></span>
diff --git a/app/views/list/list.erb b/app/views/list/list.erb
index 4acd8e7b3c2..53c5064e642 100644
--- a/app/views/list/list.erb
+++ b/app/views/list/list.erb
@@ -43,7 +43,6 @@
<% @list.topics.each_with_index do |t,i| %>
<div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
<meta itemprop='position' content='<%= i %>'>
- <meta itemprop='url' content='<%= t.url %>'>
<a href='<%= t.url %>' itemprop='item'>
<span itemprop='name'><%= t.title %></span>
</a>