# Disable “?u=\<user\>” in shared links

**URL:** <https://meta.discourse.org/t/disable-u-user-in-shared-links/25356>\
**Category:** Product Support\
**Created:** [Février 18, 2015, 1:25 UTC](https://meta.discourse.org/t/disable-u-user-in-shared-links/25356 "2015-02-18T13:25:33Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [Septembre 11, 2018, 7:21 UTC](https://meta.discourse.org/t/disable-u-user-in-shared-links/25356/12 "2018-09-11T07:21:10Z")

</div>

This should do it

```plaintext
<script type="text/discourse-plugin" version="0.8">
  const later = require("@ember/runloop").later;

  api.modifyClass("component:share-popup", {
    _focusUrl() {
      this._super(...arguments);

      // Needs later because of https://git.io/JfmTU
      later(() => {
        if (this.element) {
          const linkInput = this.element.querySelector("#share-link input");
          linkInput.value = this.link.split("?")[0];
        }
      }, 200);
    }
  });
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/disable-u-user-in-shared-links/25356)._
