File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 99 },
1010 twitter: {
1111 card: "summary"
12- }
12+ },
13+ canonical: url_for(only_path: false, overwrite_params: nil)
1314 ) %>
1415<%= render "application/skip_to_content" %>
1516<%= render_layout "application" do %>
Original file line number Diff line number Diff line change 77 },
88 twitter: {
99 card: @snippet.screenshot.attached? ? "summary_large_image" : "summary"
10- }
10+ },
11+ canonical: share_snippet_url(@snippet)
1112 ) %>
1213
1314<%= render Pages::Header.new(title: "Share: Snippet") %>
Original file line number Diff line number Diff line change 4646 # config.property_tags.push(
4747 # 'x-hearthstone:deck',
4848 # )
49+
50+ # John Mueller's suggestion is to avoid mixing canonical with noindex
51+ # https://github.com/kpumuk/meta-tags?tab=readme-ov-file#canonical-url
52+ config . skip_canonical_links_on_noindex = true
4953end
You can’t perform that action at this time.
0 commit comments