mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: use correct URL in schema markup for post images. (#13847)
Currently, it wrongly adds Discourse base URL in prefix even for CDN URLs.
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
<link itemprop="mainEntityOfPage" href="<%= post.topic.url %>">
|
||||
|
||||
<% if post.image_url %>
|
||||
<link itemprop="image" href="<%= Discourse.base_url %><%= post.image_url %>">
|
||||
<link itemprop="image" href="<%= post.image_url %>">
|
||||
<% end %>
|
||||
|
||||
<span class="crawler-post-infos">
|
||||
|
||||
Reference in New Issue
Block a user