Currently you can create a new link in the translation column by selecting text and clicking on any source link, even if the source link is really a missing link or the source link cannot be adapted. Links created in this manner turn red when you click on them and cannot be removed. No target card is shown when clicking on these links.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T76456 Language Engineering tracker of trackers (tracking) | |||
Open | None | T76449 [Epic] ContentTranslation - Translation view | |||
Open | None | T76455 [Epic] ContentTranslation - Link Adaptation | |||
Resolved | Nikerabbit | T85932 Links created by selecting text in target and clicking on source link may be a red link in target wiki |
Event Timeline
I removed technical-debt tag because this is a bug- more precisely an interaction scenario that need a definition. and not a technical debt.
@Jsahleen, what is the proposed expected result in this case?
@Pginer-WMF, what do you recommend?
If the link created does not exist in target wiki, target link card also wont be shown as reported in T85927
We should avoid creating a link the user cannot remove.
Creating a redlink automatically has some issues*, so I would suggest not generating a link in that case but showing the missing link card if (and only if) the link does not exist in the target language (and there is no other article with that name) in order to allow the user to create a red link if they want.
( * The issue of creating a red link automatically is about which should be the target. If the target is the current selected text, there may be an article with that title (which won't be equivalent to the source link) and we can generate a link to the wrong article. )
Change 237095 had a related patch set uploaded (by Nikerabbit):
Do not allow creation of link to selection by clicking red link in source
Change 237095 merged by jenkins-bot:
Do not allow creation of link to selection by clicking red link in source
Change 239102 had a related patch set uploaded (by Nikerabbit):
Prevent creation of unadapted link in target