# Canonical Meta Data Does Not Change Correctly in Discourse App when not loaded by a webcrawler

**URL:** <https://meta.discourse.org/t/canonical-meta-data-does-not-change-correctly-in-discourse-app-when-not-loaded-by-a-webcrawler/159435>\
**Category:** Feature\
**Created:** [31 juli 2020 om 17:00 UTC](https://meta.discourse.org/t/canonical-meta-data-does-not-change-correctly-in-discourse-app-when-not-loaded-by-a-webcrawler/159435 "2020-07-31T17:00:39Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [1 augustus 2020 om 05:20 UTC](https://meta.discourse.org/t/canonical-meta-data-does-not-change-correctly-in-discourse-app-when-not-loaded-by-a-webcrawler/159435/6 "2020-08-01T05:20:13Z")

</div>

In the interim, since I cannot accomplish what I want in a (handlebars-based) plugin for HTML served to crawlers, we have decided to simply strip out the canonical tags from Discourse, which is a partial solution for now until I can figure out how to modify the canonical tag with some Javascript for web crawlers.

Discourse provides a nice mechanism for these kinds of changes in the container `yml` files, so that is what I have done today.

> **[Removing Canonical Link Tags (canonical\_link\_tag) from Discourse](https://community.unix.com/t/removing-canonical-link-tags-canonical-link-tag-from-discourse/379427)**
>
> Recently I learned that Discourse serves a totally different application to crawlers, like GoogleBot for example. I learned this when writing a Discourse plugin code to alter the meta tag based on if the topic was imported from the legacy forum...

I am very grateful to Discourse meta for pointing out that the Discourse app served to (identified) crawlers is not the same as the pages served to users.

Please note that I am not recommending this “interim solution” to other Discourse sys admins. I am simply sharing what I have decided to do, at this time, and how I did it (until we come up with a more interesting solution).

---

_[View the full topic](https://meta.discourse.org/t/canonical-meta-data-does-not-change-correctly-in-discourse-app-when-not-loaded-by-a-webcrawler/159435)._
