Page MenuHomePhabricator

Insert Link Dialog should insert links in the shortest form
Open, LowPublicFeature

Description

When I enter "a" as target page and "ab" as text to display, the dialog should insert [[a]]b rather than the current [[a|ab]]. This should work at least for ASCII-letters. If it's possible to use the localized link trail, this would be even better of course.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=48463

Details

Reference
bz49940

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:46 AM
bzimport added a project: WikiEditor.
bzimport set Reference to bz49940.
bzimport added a subscriber: Unknown Object (MLST).

Related URL: https://gerrit.wikimedia.org/r/69896 (Gerrit Change I78c8fc87be1777f63c84f8945ead1cc54161fb76)

Change 69896 abandoned by Alex Monk:
Insert link dialog: Insert simplest form of wikilinks possible

https://gerrit.wikimedia.org/r/69896

the problem with the previous patch was to take the linkTrail php-regex and convert it to a js-regex in a non-hacky way which could be used by the browser/extension.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM