FIX: Ignore canonical URL on /docs
When trying to onebox topics, the canonical URL overrides the generated
OpenGraph tags, causing a less than ideal onebox for a linked KE
article.
This commit uses the existing options for the `crawlable_meta_data`
method to generate the `og:ignore_canonical` tag.
1504fe7231/app/helpers/application_helper.rb (L267-L269)
This commit is contained in:
parent
310f2f142c
commit
abb9047d29
|
@ -1,3 +1,3 @@
|
|||
<% content_for :head do %>
|
||||
<%= raw crawlable_meta_data(title: @topic["title"], description: @excerpt) if @topic %>
|
||||
<%= raw crawlable_meta_data(title: @topic["title"], description: @excerpt, ignore_canonical: true) if @topic %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue