# 배지 시스템이 비활성화되어도 URL에 ?username을 붙이는 것을 멈출 수 있나요?

**URL:** https://meta.discourse.org/t/stop-appending-username-to-url-when-badge-system-disabled/164904
**Category:** Feature
**Created:** [9월 22, 2020, 2:05오후 UTC](https://meta.discourse.org/t/stop-appending-username-to-url-when-badge-system-disabled/164904 "2020-09-22T14:05:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [9월 22, 2020, 2:05오후 UTC](https://meta.discourse.org/t/stop-appending-username-to-url-when-badge-system-disabled/164904/1 "2020-09-22T14:05:49Z")

</div>

[팀 알파 테스터](https://meta.discourse.org/t/discourse-for-teams-alpha-testers-wanted/159324)로부터 디스코urs 토픽으로 링크할 때 뒤에 붙는 `?username`에 대한 요청을 받았습니다. 이들은 이 부분이 무엇을 위한 것인지 혼란스러워했고, 해당 링크 부분을 매번 수동으로 제거해 왔습니다. 이 과정이 번거롭다며 이를 비활성화할 수 있는지 문의했습니다.

이것이 쉽게 구현될 수 있다면 합리적인 요청으로 보입니다. 공개될 일이 없는 비공개 사이트의 경우, 배지가 절대 부여되지 않으므로 [시몬의 설명](https://meta.discourse.org/t/badges-private-communities/157300/12?u=tobiaseigen)에 따르면 이 기능이 전혀 쓸모가 없기 때문입니다. 반면, 비공개 카테고리가 있는 공개 사이트의 경우 제 판단은 아직 유보적입니다. 게시물이 이동되어 공개 카테고리에 도착할 경우, 링크 배지 획득에 기여해야 하기 때문입니다.

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [9월 28, 2020, 4:14오후 UTC](https://meta.discourse.org/t/stop-appending-username-to-url-when-badge-system-disabled/164904/7 "2020-09-28T16:14:54Z")

</div>

이제 배지가 비활성화된 경우 공유 URL에 사용자 이름 매개변수를 추가하지 않습니다 👍

> <https://github.com/discourse/discourse/commit/72361738d0cf05b542c3814668618d585400f402>
>
> Context: https://meta.discourse.org/t/stop-appending-username-to-url-when-badge-…system-disabled/164904
> 
> Share links for topics and posts have the current username appended to them when the user is logged in. 
> 
> If badges are disabled, those added usernames are not beneficial since they're only used to track progress towards certain badges. 
> 
> This PR makes two change. 
> 
> 1. it moves the logic for the share link url to a centralized helper because it's shared in both topic and post models. 
> 2. it stops username params from being added to share links when badges are disabled.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [9월 28, 2020, 4:44오후 UTC](https://meta.discourse.org/t/stop-appending-username-to-url-when-badge-system-disabled/164904/8 "2020-09-28T16:44:36Z")

</div>


