# Feature request: link to title not body when sharing to discourse PWA

**URL:** https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156
**Category:** Feature
**Tags:** completed
**Created:** [May 2, 2025, 10:12pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156 "2025-05-02T22:12:00Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 2, 2025, 10:12pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/1 "2025-05-02T22:12:00Z")

</div>

It would be really nice if links shared to the Title instead of (just) the Post body so that the Title was populated automatically just like it does if you do that within a site.

Is there any reason why the Post body is the target?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 7, 2025, 6:38pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/2 "2025-05-07T18:38:35Z")

</div>

Would you accept a PR here or is there a reason why it was done this way?

@Falco what PR introduced this feature (I had a look but couldn’t track it down)?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 7, 2025, 6:40pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/3 "2025-05-07T18:40:23Z")

</div>

> [@merefield](#):
>
> @Falco what PR introduced this feature (I had a look but couldn’t track it down)?

This been a loooooong time ago, but won’t this break when you aren’t sharing a link but a textual content?

At least you’d had to detect if the sharing text is a link and send it to the proper field.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 7, 2025, 6:41pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/4 "2025-05-07T18:41:44Z")

</div>

> [@Falco](#):
>
> At least you’d had to detect if the sharing text is a link and send it to the proper field.

Yeah, that’s presumably more challenging because aren’t you just GETing a URL e.g. `https://blah.com/new-topic? ...`

But happy to take a look

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 7, 2025, 6:55pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/5 "2025-05-07T18:55:56Z")

</div>

If most sites are sending just a URL nowadays I’d be happy with the change.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 7, 2025, 6:56pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/6 "2025-05-07T18:56:54Z")

</div>

I’ve found the code 🕵 and I’ll take a look if we can handle both … but agree URL’s are probably sent 99% of the time, so worth considering …

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 7, 2025, 9:17pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/7 "2025-05-07T21:17:49Z")

</div>

OK I’ve worked out how to support both:

- text shares will go to body
- titles go to title
- link shares will go to title (and then render as a fully expanded title and in the body a nice onebox upon instantiation with all that comes with that including topic list previews)

Currently the update is in a working plugin:

[https://github.com/merefield/discourse-share-to-link-oneboxer](https://github.com/merefield/discourse-share-to-link-oneboxer)

I’ll submit this as a PR as really a no brainer.

Tested this on both Android and Windows (Edge) PWAs and seems to work great.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 7, 2025, 9:48pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/8 "2025-05-07T21:48:19Z")

</div>

PR is here:

[https://github.com/discourse/discourse/pull/32631](https://github.com/discourse/discourse/pull/32631)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 12, 2025, 12:15pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/9 "2025-06-12T12:15:04Z")

</div>

Gentle reminder @Falco

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 13, 2025, 2:25pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/10 "2025-06-13T14:25:29Z")

</div>

Merged, thanks for the PR!

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 13, 2025, 2:31pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/11 "2025-06-13T14:31:29Z")

</div>

thanks for the review!

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 13, 2025, 3:23pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/12 "2025-06-13T15:23:38Z")

</div>

Confirmed this is working on latest rebuild

Another reason to consider Android over iOS for your next phone 📱 if addicted to Discourse-land 😅

I think we can mark this as Completed?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 13, 2025, 3:23pm UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/13 "2025-06-13T15:23:54Z")

</div>


