# Add rel="nofollow" admin setting is not working right, its making parent domain link as nofollow

**URL:** <https://meta.discourse.org/t/add-rel-nofollow-admin-setting-is-not-working-right-its-making-parent-domain-link-as-nofollow/29226>\
**Category:** Feature\
**Created:** [25 مايو 2015، 6:50م UTC](https://meta.discourse.org/t/add-rel-nofollow-admin-setting-is-not-working-right-its-making-parent-domain-link-as-nofollow/29226 "2015-05-25T18:50:08Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [25 مايو 2015، 9:41م UTC](https://meta.discourse.org/t/add-rel-nofollow-admin-setting-is-not-working-right-its-making-parent-domain-link-as-nofollow/29226/7 "2015-05-25T21:41:05Z")

</div>

Looks like `uri.host.ends_with?(site_uri.host)` is the code that does it. It seems that `try.discourse.org` would not match `www.discourse.org`.

Are we sure we’d want it to do that? It might be weird from a security standpoint to make `try` match `www`.

---

_[View the full topic](https://meta.discourse.org/t/add-rel-nofollow-admin-setting-is-not-working-right-its-making-parent-domain-link-as-nofollow/29226)._
