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:
Vinoth Kannan
2021-07-26 21:39:51 +05:30
committed by GitHub
parent e1d2b67178
commit 5a93893b08
3 changed files with 14 additions and 2 deletions

View File

@@ -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">