# Inserting link to topic in selected text should maintain selected text

**URL:** https://meta.discourse.org/t/inserting-link-to-topic-in-selected-text-should-maintain-selected-text/378185
**Category:** UX
**Tags:** composer, pr-welcome
**Created:** [August 11, 2025, 5:41pm UTC](https://meta.discourse.org/t/inserting-link-to-topic-in-selected-text-should-maintain-selected-text/378185 "2025-08-11T17:41:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [August 11, 2025, 5:41pm UTC](https://meta.discourse.org/t/inserting-link-to-topic-in-selected-text-should-maintain-selected-text/378185/1 "2025-08-11T17:41:17Z")

</div>

When we select some text:

![SCR-20250809-rejm](https://global.discourse-cdn.com/meta/original/4X/e/8/d/e8da4d2bcf408ade2f10faad4e403623bc6367cd.png)

and then press CMD/CTRL+K to open the window to add the link:

 ![SCR-20250809-relt](https://global.discourse-cdn.com/meta/original/4X/3/5/7/357b5ef7ab0fa88a9e4f11c4edaf56956bbdd07f.png)

and we search for a topic:

 ![SCR-20250809-renj](https://global.discourse-cdn.com/meta/original/4X/a/a/a/aaab7797fc7170972390fb72785b97acf41e7ac3.png)

I think the selected text should be kept, otherwise, it doesn’t make much sense to select the text if we are going to lose it:

 ![SCR-20250809-reoq](https://global.discourse-cdn.com/meta/original/4X/7/e/9/7e9e8c1d95fa3faf9682baab1676d018865382f7.png)

Either keep the selected text by default, or give us the option to either use the selected text or the topic title.

---

<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: [August 13, 2025, 11:12pm UTC](https://meta.discourse.org/t/inserting-link-to-topic-in-selected-text-should-maintain-selected-text/378185/2 "2025-08-13T23:12:59Z")

</div>

I agree with this one, if you already decided on text for the link text we should not be overriding it. Seems like a very easy tweak.

---

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [August 14, 2025, 5:19pm UTC](https://meta.discourse.org/t/inserting-link-to-topic-in-selected-text-should-maintain-selected-text/378185/5 "2025-08-14T17:19:50Z")

</div>

Awesome! Good to know it’s an easy tweak (or so it seems).
