# Renaming Tag to Existing Tag Should Merge

**URL:** https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518
**Category:** Feature
**Created:** [5월 12, 2019, 7:13오후 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518 "2019-05-12T19:13:09Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![John\_Lehmann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john_lehmann/32/140084_2.png) [@John\_Lehmann](https://meta.discourse.org/u/John_Lehmann)
#### Post date: [5월 12, 2019, 7:13오후 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/1 "2019-05-12T19:13:09Z")

</div>

Since Tags are so important in Discourse best practices, I believe we need at least the basic operations for managing them. And it seems like one that is missing is being able to merge one tag into another. For example, if users create both `#dog` and `#dogs`, at some point the admin will want to consolidate these.

What I’d expect is that when I tell it to rename `#dog` to `#dogs` it would say, “Tag already exists, do you want to merge this one in to that one?” instead of just denying the operation as it does currently.

As it stands it seems like I’d have to modify those topics one by one and finally delete the empty tag.

There is a related topic about synonyms, which is related to some degree.

> [@Merging tags - Tag Synonyms](https://meta.discourse.org/t/merging-tags-tag-synonyms/81869):
>
> There are two ways to say the same thing as Bangalore city also known as Bengaluru. [As this topics has both tags.](https://forum.csclub.co/t/bharat-electronics-limited-looking-for-cs-trainees-in-bengaluru/892?u=vaibhavmule) Are there any ways I can merge these tags and can have the main tag and others as synonyms as mentioned in the following article? Does discourse provide it?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [5월 12, 2019, 7:29오후 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/2 "2019-05-12T19:29:55Z")

</div>

The tools already exist to do this, just not in the form of a merge button. It’s actually useful to be alerted to a tag already existing, and a merger would be irreversible, so it’s probably wise that it’s not just a click away.

You can also just visit a tag page, then click on the icon to the left of `Topic` which reveals checkboxes to the left of each topic and the following buttons:

 ![46%20PM](https://global.discourse-cdn.com/meta/original/3X/e/4/e4e9d37e4de295458c7730e9b1f95b5fb642d677.png)

Hit `Select All` on the posts and use `Append Tag` on the wrench menu:

 ![56%20PM](https://global.discourse-cdn.com/meta/original/3X/9/0/90a8dbc4115a462fbc035b690c3c0267d7513e0c.png)

 ![01%20PM](https://global.discourse-cdn.com/meta/original/3X/8/d/8df8a6e580a00bf87ecbaf912347620a5c528d3d.png)

Or if it’s the only tag on those posts Replace Tag works too.

After that you can delete the unwanted tag.

---

<div class="post-metadata">

### Author: ![John\_Lehmann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john_lehmann/32/140084_2.png) [@John\_Lehmann](https://meta.discourse.org/u/John_Lehmann)
#### Post date: [5월 12, 2019, 7:45오후 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/3 "2019-05-12T19:45:37Z")

</div>

> [@Stephen](#):
>
> It’s actually useful to be alerted to a tag already existing, and a merger would be irreversible, so it’s probably wise that it’s not just a click away.

Thanks Stephen, very useful!

(And FWIW I wasn’t suggesting just a “one click” action. I was advocating having to click “rename tag” and then having to click through another confirmation as well. But this workaround of append and delete should be fine for me.)

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [5월 13, 2019, 4:49오전 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/4 "2019-05-13T04:49:34Z")

</div>

> [@Stephen](#):
>
> Hit `Select All` on the posts and use `Append Tag` on the wrench menu:

Will this work even if i have 999\_999\_999 topics? (_i would really like not to be in that situation, but you never know_ 😃 )

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [7월 30, 2022, 9:01오전 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/5 "2022-07-30T09:01:16Z")

</div>

오래된 글이지만 검색해서 찾았어요 😉

물론이죠 — 단, 30개 게시물 단위로 진행해야 합니다.

그리고 제가 지금 그런 상황에 처해 있어서 (글쎄요, 정확히 그 정도는 아니지만 대체된 태그가 꽤 많긴 해요 🤣 ) 셸에서 어떻게 하면 될지 계속 찾아볼 겁니다.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [7월 30, 2022, 9:15오전 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/6 "2022-07-30T09:15:54Z")

</div>

기억이 맞다면, 더 많은 항목을 불러오려면 아래로 스크롤한 뒤 '전체 선택’을 해야 합니다. 화면에 보이는 항목만 선택되는 것 같으니, 먼저 스크롤해서 불러온 다음에 선택해야 합니다.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [7월 30, 2022, 9:21오전 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/7 "2022-07-30T09:21:51Z")

</div>

감사합니다. 그 가능성은 제 생각에 전혀 없었습니다.

하지만… 태그를 몇 개만 수정하거나 이름만 변경해야 할 때 그 메뉴는 도움이 되지 않습니다. 모든 태그를 삭제하거나 모든 태그를 변경할 수는 있지만, 하나만은 변경할 수 없거든요. 그리고 게시글에는 보통 태그가 하나 이상 있고, 하나의 태그를 공유하는 모든 게시글에는 또 다른 서로 다른 태그들도 함께 있습니다 — 그리고 그 태그들은 그대로 두어야 합니다.

따라서 이 해결책은 태그를 병합/이름 변경해야 할 필요가 있을 때 도움이 되지 않습니다. 여러 게시글의 모든 태그를 동일한 것으로 변경해야 할 필요가 있을 때 도움이 되는 것입니다.

아니면 제가 또 뭔가 잘못 이해한 걸까요?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [7월 30, 2022, 9:48오전 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/8 "2022-07-30T09:48:38Z")

</div>

무엇을 말씀하시는 건지 잘 모르겠어요? 🙂 제 팁은 ‘한 번에 30개만’ 문제를 위한 것이었어요. 일괄 선택 기능이 모든 경우에 해결책이 되지는 않을 수 있어요. 그래도 검색 결과 페이지나 주제 목록에서도 작동하는 것 같으니, 도움이 될지도 모르겠네요.

그리고 이제 모바일에서도 사용할 수 있게 되었어요. 🎉

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [7월 30, 2022, 9:57오전 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/9 "2022-07-30T09:57:36Z")

</div>

> [@JammyDodger](#):
>
> 잘 이해가 안 되네요?

정말 흔한 문제입니다 🤣

저희, 혹은 제가 제 엉성한 영어 실력과 엉망진창인 문장 구조 탓을 할 수 있겠네요. 감사 인사를 드린 후, 운이 나쁘게도 `But…`로 시작된 그 부분은 당신의 팁에 대한 언급이 아니라, 그 도구를 사용하라는 원래의 조언에 대한 것이었습니다.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [7월 30, 2022, 10:05오전 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/10 "2022-07-30T10:05:46Z")

</div>

하 🙂 네, 이제 이해한 것 같습니다.

원래 기능 요청 자체가 좋은 아이디어라고 생각합니다. 👍 태그를 병합할 수 있다면 대량 작업으로 우회하는 것보다 훨씬 쉬울 것입니다.

**수정:** 사실 이 기능이 너무 좋아서 이미 추가되었습니다. 🙂

> [@Moin](#):
>
> 태그를 병합하는 옵션이 있는 줄 알았어요.
> 
> [Merging tags - Tag Synonyms - #16 by neil](https://meta.discourse.org/t/merging-tags-tag-synonyms/81869/16)

---

<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월 30, 2022, 12:02오후 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/11 "2022-07-30T12:02:43Z")

</div>

> [@JammyDodger](#):
>
> 태그를 병합할 수 있다면 대량 작업 절차를 거치는 것보다 쉬울 것입니다.

태그를 병합할 수 있는 옵션이 있는 줄 알았는데요.

> [@tshenry](#):
>
> ### 태그 관리
> 
> 1. 사이트의 `/tags` 페이지로 이동합니다.
> 2. 관리하려는 태그를 선택합니다.
> 3. 버튼을 선택하여 이름 변경, 삭제 및 동의어 관리 옵션을 표시합니다:
> 
> ![info](https://global.discourse-cdn.com/meta/original/4X/c/b/0/cb0c14d5f697a948ee0bc4e95e3cd3897cae87f9.png)

> [@Merging tags - Tag Synonyms](https://meta.discourse.org/t/merging-tags-tag-synonyms/81869/16?u=moin):
>
> 이 기능이 [최신 베타 릴리스](https://meta.discourse.org/t/discourse-2-4-0-beta8-release-notes/135183)에 포함되었으므로, 업그레이드 후 사용해 보세요. 동의어 생성과 태그 병합은 같은 곳에서 수행됩니다. "js"와 “javascript” 태그를 병합하고 "javascript"를 기본 태그로 선택하려면, javascript 태그 페이지(/tags/javascript)로 이동하세요. "js"가 동의어로 추가되면, 해당 토픽은 “javascript” 태그가 지정된 것으로 표시됩니다. 검색 및 필터에서도 js가 표시되며, 사용자는 대신 javascript로 안내됩니다. 토픽에 태그를 지정할 때 js를 사용하면 대신 javascript가 사용됩니다. 이 외에도 동의어를 처리해야 하는 모든 장소를 파악했다고 생각하지만, 놓친 부분이 있다면 알려주세요.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [7월 30, 2022, 12:44오후 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/12 "2022-07-30T12:44:58Z")

</div>

그건 병합이 아닙니다. 대략 리다이렉션에 가깝습니다. 제 생각은 그렇지만, 틀릴 수도 있죠.

아니면, 그 리다이렉션은 향후 필요를 위해 있는 건가요? 그리고 곧 삭제될 예정이라면, 기존에 리다이렉션되던 것들이 새로운 주소로 변경되는 건가요?

지금 그 문제로 씨름하고 있어서 확인해봐야겠습니다.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [7월 30, 2022, 3:59오후 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/13 "2022-07-30T15:59:52Z")

</div>

제가 틀렸습니다. 실제로 병합이 일어나고, 리다이렉트는 누군가가 기존 태그를 사용하려고 할 때를 대비해 미래에 사용되도록 되어 있네요. 좋습니다!

- 기존 태그는 A이며, X개의 게시물이 있습니다.
- 새 태그는 B이며, 현재 사용 중인 게시물이 0개입니다.
- A는 B의 동의어입니다.
- 모든 게시물의 태그가 A에서 B로 변경되었습니다.
- 동의어 연결은 삭제되어야 합니다.
- 모든 게시물이 태그 B 아래에 유지되고, 태그 A에는 게시물이 0개가 됩니다.

정말 훌륭하네요 👍

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [7월 30, 2022, 4:22오후 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/14 "2022-07-30T16:22:01Z")

</div>

@Moin, 잘 잡았어요 🙂 이 주제를 닫겠습니다. 👍

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [7월 31, 2022, 4:22오후 UTC](https://meta.discourse.org/t/renaming-tag-to-existing-tag-should-merge/117518/15 "2022-07-31T16:22:37Z")

</div>

이 주제는 마지막 답변 후 24시간이 지나면 자동으로 닫힙니다. 더 이상 새 답변을 남길 수 없습니다.
