In adding a TitleInputWidget to the link-insert dialog (for T289214), I'm running into an issue where the typed title isn't available for selection if it doesn't exist but is a prefix substring of an existing title.
For example, in a wiki with one page Test page, it's not possible to select Test as a title, but it is possible to select Testing.
Non-existing title, shows red link: | Non-existing title doesn't show (it should be showing two items here, Test and Test page): |
The addQueryInput config parameter is supposed to "Add exact user's input query to results", but this only adds the exact input when the page title exists, and then it ends up being redundant and lists the page twice (if there's a normalization difference):
(Although, perhaps showing it twice is okay, because users might want to select the non-normalized form.)
What I think should be happening:
- Typing test should show two results: Test and Test page (this is what this task is about)
- Typing testing should show Testing
- Typing test page should show Test page