# "Share a link" for a post should not leak username

**URL:** https://meta.discourse.org/t/share-a-link-for-a-post-should-not-leak-username/66489
**Category:** Feature
**Tags:** completed
**Created:** [7월 20, 2017, 5:23오전 UTC](https://meta.discourse.org/t/share-a-link-for-a-post-should-not-leak-username/66489 "2017-07-20T05:23:45Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [7월 20, 2017, 6:36오전 UTC](https://meta.discourse.org/t/share-a-link-for-a-post-should-not-leak-username/66489/2 "2017-07-20T06:36:36Z")

</div>

It discussed already and having a solution below

> [@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\>

---

_[View the full topic](https://meta.discourse.org/t/share-a-link-for-a-post-should-not-leak-username/66489)._
