From 16b8476cb4a320bba288ca73466b09dd5b5682ae Mon Sep 17 00:00:00 2001 From: Ayke Halder Date: Fri, 12 Jan 2024 07:41:08 +0100 Subject: [PATCH] FIX: Ensure consistent `datePublished` on follow-up pages in topic microdata schema (#25130) * Ensure consistent `datePublished` and remove `text` on second page in topic microdata schema Always use `datePublished` from topic and never from `first_psot`. This ensures `datePublished` to be consistent on `first page` and `page=2+`. No need to repeat `text` on `page=2+`. Especially do not set `text` on `page=2+` if it is only an abstract and thereby not 100% consistent with `text` on `first page`. * Keep `text`attribute on follow-up pages --- app/views/topics/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index bff328cf0df..a6bdff2eccd 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -37,6 +37,7 @@
+ <% if @topic_view.topic.category.present? %> <% end %> @@ -51,7 +52,6 @@
<% if @topic_view.prev_page %> -