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

**URL:** <https://community.unix.com/t/potential-discourse-pr-app-views-layouts-head-html-erb/378802>\
**Category:** Discourse System Administration\
**Created:** [June 9, 2020, 8:17am UTC](https://community.unix.com/t/potential-discourse-pr-app-views-layouts-head-html-erb/378802 "2020-06-09T08:17:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neo](https://community.unix.com/user_avatar/community.unix.com/neo/32/22838_2.png) [@Neo](https://community.unix.com/u/Neo)\
**Post date:** [June 9, 2020, 8:17am UTC](https://community.unix.com/t/potential-discourse-pr-app-views-layouts-head-html-erb/378802/1 "2020-06-09T08:17:55Z")

</div>

#### REF: `_head.html.erb`

> <https://github.com/discourse/discourse/blob/main/app/views/layouts/_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:

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

```

#### Status:

-Not Yet Submitted
