Hyperlink text overridden by topic title when changing link destination

סיכום מבוסס בינה מלאכותית

In a Support category discussion titled “Hyperlink text overridden by topic title when changing link destination,” user stephtara reports an issue where editing internal links in the Discourse UI replaces the original anchor text with the target topic’s title. This creates significant friction when migrating documentation, as it forces users to manually retype the link text. stephtara notes that while Markdown editing is an option, it is not ideal for non-technical collaborators. ToddZ confirms that currently, retyping in the dialog or using Markdown are the only workarounds, though he acknowledges the feature is designed to simplify linking for non-tech users by auto-populating titles. Both stephtara and ToddZ agree that the current behavior is standard but suggest that a better user experience would involve preserving existing link text during edits, perhaps with an optional override to change the title if desired.

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.

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:

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?)

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: