Potential Discourse PR: app/views/layouts/_head.html.erb

REF: _head.html.erb

Comments:

Discourse automatically adds the canonical link tag to topics, which is a good thing in most all circumstances, but for some large forums who have migrated posts to discourse and have been around for a long time, those forums might (for various reasons) wish to set which topic (Discourse or otherwise) is canonical in a phased, step by step approach.

By having a SiteSetting for canonicalization, which would default true for most forums in config/., forum admins who wish to set turn this off for the site, or individually in a topic (in a plugin), will have the ability to do so.

If this PR is accepted, we would also need to add this to discourse/config/site_settings.yml to set the default to true, or so I think.

Possible Code Changes:

<%- if SiteSetting.enable_canonical_link_tag? %>
<%= canonical_link_tag %>
<% end %>

Status:

-Not Yet Submitted