# When sharing a topic

**URL:** https://meta.discourse.org/t/when-sharing-a-topic/108071
**Category:** Support
**Created:** [January 31, 2019, 11:42pm UTC](https://meta.discourse.org/t/when-sharing-a-topic/108071 "2019-01-31T23:42:24Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![InceptionTime](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/inceptiontime/32/155687_2.png) [@InceptionTime](https://meta.discourse.org/u/InceptionTime)
#### Post date: [January 31, 2019, 11:42pm UTC](https://meta.discourse.org/t/when-sharing-a-topic/108071/1 "2019-01-31T23:42:24Z")

</div>

Is there a way/setting to disable the feature that adds ?u=_Username_ at the end of the link when sharing a discourse topic via the share link button?

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/0/c057d0f0c28e8b244ef358da9e3c6a1df573522c.png)

---

<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: [January 31, 2019, 11:44pm UTC](https://meta.discourse.org/t/when-sharing-a-topic/108071/2 "2019-01-31T23:44:43Z")

</div>

No, there is no way to disable this.

---

<div class="post-metadata">

### Author: ![InceptionTime](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/inceptiontime/32/155687_2.png) [@InceptionTime](https://meta.discourse.org/u/InceptionTime)
#### Post date: [February 1, 2019, 12:02am UTC](https://meta.discourse.org/t/when-sharing-a-topic/108071/3 "2019-02-01T00:02:29Z")

</div>

Would it be possible to add a global setting or a per-user setting to disable this in the future?

---

<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: [February 1, 2019, 1:44am UTC](https://meta.discourse.org/t/when-sharing-a-topic/108071/4 "2019-02-01T01:44:41Z")

</div>

I believe the assumption is that if someone doesn’t like that kind of behavior that they can already recognise and remove it themselves.

Thus far that has held pretty true.

Worst case they can also grab the URL direct from the address bar.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 1, 2019, 6:58am UTC](https://meta.discourse.org/t/when-sharing-a-topic/108071/5 "2019-02-01T06:58:57Z")

</div>

Technically you could build a theme component that disables it, CDCK (us) have no plans of creating such a component, if you really really want it maybe make a #Marketplace topic.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [February 1, 2019, 7:20am UTC](https://meta.discourse.org/t/when-sharing-a-topic/108071/6 "2019-02-01T07:20:07Z")

</div>

You can find the code in below topic.

> [@Twitter shared URL has a query string](https://meta.discourse.org/t/twitter-shared-url-has-a-query-string/47446/12):
>
> Okay. If you still prefer to not having it add the below javascript in your discourse customization. It’s working fine for me as you wanted. \<script\> jQuery( document ).ready(function() { $('#main').on('click', '.widget-button.share', function () { var url = $(this).attr('data-share-url'); var i = url.indexOf('?'); if(i \> 0) url = url.substring(0, i); $(this).attr('data-share-url', url); }); }); \</script\>

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 3, 2019, 7:20am UTC](https://meta.discourse.org/t/when-sharing-a-topic/108071/7 "2019-03-03T07:20:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
