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:
Justin DiRose 2020-10-06 11:22:18 -05:00
parent 310f2f142c
commit abb9047d29
No known key found for this signature in database
GPG Key ID: 4B811FB264021800
1 changed files with 1 additions and 1 deletions

View File

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