Page MenuHomePhabricator

VisualEditor: MWLinkTargetInputWidget should grok case sensitivity of suggested page title vs. the inputed text
Closed, ResolvedPublic

Description

Screenshot of problem

Scenario:

  • Document contains " ... esams ... "
  • Wiki has a page called "Esams".
  • Wiki does not have case-sensitive first character in the main namespace.
  • Select "esams" and turn it into a link
  • UI shows: [ esams ] New page: <redlink> esams Matching page: Esams Esams cluster Esams patches

That first redlink is incorrect, it should show the same as when the input is "Esams" (with capital E), namely no "redlink" since the first match is in fact the input.

It needs to account for the $wgCapitalLinkOverrides and $wgCapitalLinkOverrides configuration etc. This is abstracted in PHP by MWNamespace::isCapitalized, which is exposed in javascript as 'wgCaseSensitiveNamespaces' in mw.config.


Version: unspecified
Severity: major

Attached:

Screen_Shot_2013-05-15_at_1.04.41_AM.png (604×606 px, 41 KB)

Details

Reference
bz48476