Hyperlink text overridden by topic title when changing link destination

Is there a solution to this? I’m copying over a lot of documentation from Google Docs, and need to update the jungle of internal links between the documents. When I go to edit a link and replace the Google Doc URL with the Discourse topic I want instead, it overrides the linked text.

Here’s my original link text:

I search for the right topic, select it in the list, and look, the linked text has been changed to the topic title:

So I need to type it correctly again.

I guess I could make all these changes in Markdown, but others than me are going to be helping out with this and they aren’t all necessarily comfy using Markdown.

1 Like

Retyping in the dialog or using Markdown are really the options here.

I’d imagine that, like most things, the link dialog behavior could be altered with a component or plugin. But other times you’ll want it to grab the internal topic title…

So it might get complicated :face_with_spiral_eyes:

1 Like

yeah, it should use the link title if you’re creating a link from scratch; if you’re editing a link which already contains text, then by default it should keep that text (maybe provide an override?)

1 Like

The way it works now is so typical, I’ve never thought twice about hand editing – but providing the title as an optional override is an interesting UI idea. :light_bulb:

1 Like