Skip to content

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

FEATURE: include username link in the microdata schema (#25112)

Arpit Jalan4bf60b3e5b71
diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb
index 2b4522075e4..bff328cf0df 100644
--- a/app/views/topics/show.html.erb
+++ b/app/views/topics/show.html.erb
@@ -54,6 +54,7 @@
<meta itemprop='datePublished' content='<%= @topic_view.topic.created_at.to_formatted_s(:iso8601) %>'>
<span itemprop='author' itemscope itemtype="http://schema.org/Person">
<meta itemprop='name' content='<%= @topic_view.topic.user.username %>'>
+ <link itemprop='url' href='<%= Discourse.base_url %>/u/<%= @topic_view.topic.user.username %>'>
</span>
<meta itemprop='text' content='<%= @topic_view.topic.excerpt %>'>
<% end %>