# Add tags with capital letters

**URL:** <https://meta.discourse.org/t/add-tags-with-capital-letters/45180>\
**Category:** Feature\
**Tags:** completed, tags\
**Created:** [3 يونيو 2016، 5:36ص UTC](https://meta.discourse.org/t/add-tags-with-capital-letters/45180 "2016-06-03T05:36:22Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [7 سبتمبر 2025، 7:46ص UTC](https://meta.discourse.org/t/add-tags-with-capital-letters/45180/5 "2025-09-07T07:46:54Z")

</div>

تمت إضافة إعداد الموقع `force lowercase tags`، والذي يسمح بأحرف كبيرة عند تمكينه، في

> <https://github.com/discourse/discourse/pull/6454>
>
> \- By default, behavior is not changed: tags are made lowercase upon creation and… edit.
> 
> \- If force\_lowercase\_tags is disabled, then mixed case tags are allowed.
> 
> \- Tags must remain case-insensitively unique. This is enforced by ActiveRecord and Postgres.
> 
> \- A migration is added to provide a \`UNIQUE\` index on \`lower(name)\`. Migration includes a safety to correct any current tags that do not meet the criteria.
> 
> \- A scope is added to \`models/tag.rb\`, to allow easy case-insensitive lookups. This is used instead of \`Tag.where(name: "blah")\`.
> 
> \- URLs remain lowercase. Mixed case URLs are functional, but have the lowercase equivalent as the canonical.

---

_[View the full topic](https://meta.discourse.org/t/add-tags-with-capital-letters/45180)._
